Add more TrustedType tests for eval and function constructor. #49997
Community-TC (pull_request)
Verify that all tests affected by a pull request are stable when executed in chrome.
Details
View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster
Task Status
Started: 2025-01-09T15:30:29.011Z
Resolved: 2025-01-09T15:34:32.132Z
Task Execution Time: 4 minutes, 3 seconds, 121 milliseconds
Task Status: completed
Reason Resolved: completed
RunId: 0
Artifacts
- public/logs/live_backing.log
- public/logs/live.log
- public/results/checkrun.md
WPT Command: python3 ./wpt run --channel=dev --verify --verify-no-chaos-mode --verify-repeat-loop=0 --verify-repeat-restart=10 --github-checks-text-file=/home/test/artifacts/checkrun.md --affected base_head --log-mach-level=info --log-mach=- -y --no-pause --no-restart-on-unexpected --install-fonts --no-headless --verify-log-full --enable-swiftshader --install-browser --install-webdriver chrome
[taskcluster 2025-01-09 15:30:29.072Z] Task ID: OR1XRavHTq20sBF2oWZOYw
[taskcluster 2025-01-09 15:30:29.072Z] Worker ID: 8068347083722217213
[taskcluster 2025-01-09 15:30:29.072Z] Worker Group: us-east1-d
[taskcluster 2025-01-09 15:30:29.072Z] Worker Node Type: projects/757942385826/machineTypes/n2-standard-4
[taskcluster 2025-01-09 15:30:29.072Z] Worker Pool: proj-wpt/ci
[taskcluster 2025-01-09 15:30:29.072Z] Worker Version: 46.1.0
[taskcluster 2025-01-09 15:30:29.072Z] Public IP: 34.139.220.51
[taskcluster 2025-01-09 15:30:29.072Z] Hostname: proj-wpt-ci-bpsixyysqcmmxafv3bycla
[taskcluster 2025-01-09 15:30:29.883Z] === Task Starting ===
+ '[' '' ']'
+ '[' -d /etc/profile.d ']'
+ for i in /etc/profile.d/*.sh
+ '[' -r /etc/profile.d/01-locale-fix.sh ']'
+ . /etc/profile.d/01-locale-fix.sh
+++ /usr/bin/locale-check C.UTF-8
++ eval
+ for i in /etc/profile.d/*.sh
+ '[' -r /etc/profile.d/libvirt-uri.sh ']'
+ . /etc/profile.d/libvirt-uri.sh
...(10710 lines hidden)...
FAIL Blocked eval in DedicatedWorkerGlobalScope. - assert_throws_js: function "_ => eval("'42'")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:13:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:11:1
FAIL Blocked indirect eval in DedicatedWorkerGlobalScope. - assert_throws_js: function "_ => eval?.("'42'")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:19:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:17:1
FAIL Blocked Function constructor in DedicatedWorkerGlobalScope. - assert_throws_js: function "_ => new functionConstructor("return;")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked AsyncFunction constructor in DedicatedWorkerGlobalScope. - assert_throws_js: function "_ => new functionConstructor("return;")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked GeneratorFunction constructor in DedicatedWorkerGlobalScope. - assert_throws_js: function "_ => new functionConstructor("return;")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked AsyncGeneratorFunction constructor in DedicatedWorkerGlobalScope. - assert_throws_js: function "_ => new functionConstructor("return;")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked eval in SharedWorkerGlobalScope. - assert_throws_js: function "_ => eval("'42'")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:13:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:11:1
FAIL Blocked indirect eval in SharedWorkerGlobalScope. - assert_throws_js: function "_ => eval?.("'42'")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:19:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:17:1
FAIL Blocked Function constructor in SharedWorkerGlobalScope. - assert_throws_js: function "_ => new functionConstructor("return;")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked AsyncFunction constructor in SharedWorkerGlobalScope. - assert_throws_js: function "_ => new functionConstructor("return;")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked GeneratorFunction constructor in SharedWorkerGlobalScope. - assert_throws_js: function "_ => new functionConstructor("return;")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked AsyncGeneratorFunction constructor in SharedWorkerGlobalScope. - assert_throws_js: function "_ => new functionConstructor("return;")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked eval in Window. - assert_throws_js: function "_ => eval("'42'")" threw object "SyntaxError: Unexpected string" ("SyntaxError") expected instance of function "function EvalError() { [native code] }" ("EvalError")
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:13:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:11:1
FAIL Blocked indirect eval in Window. - assert_throws_js: function "_ => eval?.("'42'")" threw object "SyntaxError: Unexpected string" ("SyntaxError") expected instance of function "function EvalError() { [native code] }" ("EvalError")
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:19:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:17:1
FAIL Blocked Function constructor in Window. - assert_throws_js: function "_ => new functionConstructor("return;")" threw object "SyntaxError: Invalid or unexpected token" ("SyntaxError") expected instance of function "function EvalError() { [native code] }" ("EvalError")
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked AsyncFunction constructor in Window. - assert_throws_js: function "_ => new functionConstructor("return;")" threw object "SyntaxError: Invalid or unexpected token" ("SyntaxError") expected instance of function "function EvalError() { [native code] }" ("EvalError")
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked GeneratorFunction constructor in Window. - assert_throws_js: function "_ => new functionConstructor("return;")" threw object "SyntaxError: Invalid or unexpected token" ("SyntaxError") expected instance of function "function EvalError() { [native code] }" ("EvalError")
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked AsyncGeneratorFunction constructor in Window. - assert_throws_js: function "_ => new functionConstructor("return;")" threw object "SyntaxError: Invalid or unexpected token" ("SyntaxError") expected instance of function "function EvalError() { [native code] }" ("EvalError")
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked eval in DedicatedWorkerGlobalScope. - assert_throws_js: function "_ => eval("'42'")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:13:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:11:1
FAIL Blocked indirect eval in DedicatedWorkerGlobalScope. - assert_throws_js: function "_ => eval?.("'42'")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:19:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:17:1
FAIL Blocked Function constructor in DedicatedWorkerGlobalScope. - assert_throws_js: function "_ => new functionConstructor("return;")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked AsyncFunction constructor in DedicatedWorkerGlobalScope. - assert_throws_js: function "_ => new functionConstructor("return;")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked GeneratorFunction constructor in DedicatedWorkerGlobalScope. - assert_throws_js: function "_ => new functionConstructor("return;")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked AsyncGeneratorFunction constructor in DedicatedWorkerGlobalScope. - assert_throws_js: function "_ => new functionConstructor("return;")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked eval in SharedWorkerGlobalScope. - assert_throws_js: function "_ => eval("'42'")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:13:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:11:1
FAIL Blocked indirect eval in SharedWorkerGlobalScope. - assert_throws_js: function "_ => eval?.("'42'")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:19:3)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:17:1
FAIL Blocked Function constructor in SharedWorkerGlobalScope. - assert_throws_js: function "_ => new functionConstructor("return;")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked AsyncFunction constructor in SharedWorkerGlobalScope. - assert_throws_js: function "_ => new functionConstructor("return;")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked GeneratorFunction constructor in SharedWorkerGlobalScope. - assert_throws_js: function "_ => new functionConstructor("return;")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
FAIL Blocked AsyncGeneratorFunction constructor in SharedWorkerGlobalScope. - assert_throws_js: function "_ => new functionConstructor("return;")" did not throw
at Test.<anonymous> (http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:30:5)
at Test.step (http://web-platform.test:8000/resources/testharness.js:2638:25)
at test (http://web-platform.test:8000/resources/testharness.js:633:30)
at http://web-platform.test:8000/trusted-types/support/block-eval-function-constructor.js:28:3
0:35.35 INFO Got 10 unexpected results, with 0 unexpected passes
0:35.35 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
0:35.63 wptserve INFO Stopped http server on 127.0.0.1:8000
0:35.82 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
0:35.83 wptserve INFO Stopped http server on 127.0.0.1:8002
0:35.83 wptserve INFO Stopped http server on 127.0.0.1:8001
0:35.83 wptserve INFO Stopped http server on 127.0.0.1:8445
0:35.84 wptserve INFO Stopped http server on 127.0.0.1:9000
0:35.84 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
0:35.84 wptserve INFO Stopped http server on 127.0.0.1:8444
0:35.84 wptserve INFO Stopped http server on 127.0.0.1:8443
0:35.84 wptserve INFO Stopped http server on 127.0.0.1:8003
0:35.84 wptserve INFO Stopped http server on 127.0.0.1:8446
0:35.95 INFO Removed font: Ahem.ttf
0:35.98 INFO Closing logging queue
0:35.98 INFO queue closed
0:35.99 INFO ::: Ran 10 of expected 10 iterations.
0:35.99 INFO ## All results ##
0:35.99 INFO ### /trusted-types/block-eval-function-constructor.html ###
0:35.99 INFO | Subtest | Results | Messages |
0:35.99 INFO |-----------------------------------------------------------------------------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
0:35.99 INFO | | OK | |
0:35.99 INFO | `Blocked eval in Window.` | FAIL | `assert_throws_js: function "_ => eval("'42'")" threw object "SyntaxError: Unexpected string" ("SyntaxError") expected instance of function "function EvalError() { [native code] }" ("EvalError")` |
0:35.99 INFO | `Blocked indirect eval in Window.` | FAIL | `assert_throws_js: function "_ => eval?.("'42'")" threw object "SyntaxError: Unexpected string" ("SyntaxError") expected instance of function "function EvalError() { [native code] }" ("EvalError")` |
0:35.99 INFO | `Blocked Function constructor in Window.` | FAIL | `assert_throws_js: function "_ => new functionConstructor("return;")" threw object "SyntaxError: Invalid or unexpected token" ("SyntaxError") expected instance of function "function EvalError() { [native code] }" ("EvalError")` |
0:35.99 INFO | `Blocked AsyncFunction constructor in Window.` | FAIL | `assert_throws_js: function "_ => new functionConstructor("return;")" threw object "SyntaxError: Invalid or unexpected token" ("SyntaxError") expected instance of function "function EvalError() { [native code] }" ("EvalError")` |
0:35.99 INFO | `Blocked GeneratorFunction constructor in Window.` | FAIL | `assert_throws_js: function "_ => new functionConstructor("return;")" threw object "SyntaxError: Invalid or unexpected token" ("SyntaxError") expected instance of function "function EvalError() { [native code] }" ("EvalError")` |
0:35.99 INFO | `Blocked AsyncGeneratorFunction constructor in Window.` | FAIL | `assert_throws_js: function "_ => new functionConstructor("return;")" threw object "SyntaxError: Invalid or unexpected token" ("SyntaxError") expected instance of function "function EvalError() { [native code] }" ("EvalError")` |
0:35.99 INFO | `Blocked eval in DedicatedWorkerGlobalScope.` | FAIL | `assert_throws_js: function "_ => eval("'42'")" did not throw` |
0:35.99 INFO | `Blocked indirect eval in DedicatedWorkerGlobalScope.` | FAIL | `assert_throws_js: function "_ => eval?.("'42'")" did not throw` |
0:35.99 INFO | `Blocked Function constructor in DedicatedWorkerGlobalScope.` | FAIL | `assert_throws_js: function "_ => new functionConstructor("return;")" did not throw` |
0:35.99 INFO | `Blocked AsyncFunction constructor in DedicatedWorkerGlobalScope.` | FAIL | `assert_throws_js: function "_ => new functionConstructor("return;")" did not throw` |
0:35.99 INFO | `Blocked GeneratorFunction constructor in DedicatedWorkerGlobalScope.` | FAIL | `assert_throws_js: function "_ => new functionConstructor("return;")" did not throw` |
0:35.99 INFO | `Blocked AsyncGeneratorFunction constructor in DedicatedWorkerGlobalScope.` | FAIL | `assert_throws_js: function "_ => new functionConstructor("return;")" did not throw` |
0:35.99 INFO | `Blocked eval in SharedWorkerGlobalScope.` | FAIL | `assert_throws_js: function "_ => eval("'42'")" did not throw` |
0:35.99 INFO | `Blocked indirect eval in SharedWorkerGlobalScope.` | FAIL | `assert_throws_js: function "_ => eval?.("'42'")" did not throw` |
0:35.99 INFO | `Blocked Function constructor in SharedWorkerGlobalScope.` | FAIL | `assert_throws_js: function "_ => new functionConstructor("return;")" did not throw` |
0:35.99 INFO | `Blocked AsyncFunction constructor in SharedWorkerGlobalScope.` | FAIL | `assert_throws_js: function "_ => new functionConstructor("return;")" did not throw` |
0:35.99 INFO | `Blocked GeneratorFunction constructor in SharedWorkerGlobalScope.` | FAIL | `assert_throws_js: function "_ => new functionConstructor("return;")" did not throw` |
0:35.99 INFO | `Blocked AsyncGeneratorFunction constructor in SharedWorkerGlobalScope.` | FAIL | `assert_throws_js: function "_ => new functionConstructor("return;")" did not throw` |
0:35.99 INFO
0:35.99 INFO ::: Running tests in a loop with restarts 10 times : PASS
0:35.99 INFO :::
0:35.99 INFO ::: Test verification PASS
0:35.99 INFO :::
X connection to :99.0 broken (explicit kill or server shutdown).
[taskcluster 2025-01-09 15:34:31.055Z] === Task Finished ===
[taskcluster 2025-01-09 15:34:31.385Z] Successful task run with exit code: 0 completed in 242.314 seconds