Content-Security-Policy (CSP) parsing for invalid bytes in directives #48855
Community-TC (pull_request)
Collect results for all tests affected by a pull request in chrome.
Details
View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster
Task Status
Started: 2024-10-29T15:37:49.874Z
Resolved: 2024-10-29T15:40:29.735Z
Task Execution Time: 2 minutes, 39 seconds, 861 milliseconds
Task Status: completed
Reason Resolved: completed
RunId: 0
Artifacts
- public/logs/live_backing.log
- public/logs/live.log
- public/results/checkrun.md
- public/results/wpt_report.json.gz
- public/results/wpt_screenshot.txt.gz
WPT Command: python3 ./wpt run --channel=dev --no-fail-on-unexpected --log-wptreport=../artifacts/wpt_report.json --log-wptscreenshot=../artifacts/wpt_screenshot.txt --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 2024-10-29 15:37:49.990Z] Task ID: W4sid5pLSumkTBgKj4byAA
[taskcluster 2024-10-29 15:37:49.990Z] Worker ID: 744233516711854072
[taskcluster 2024-10-29 15:37:49.990Z] Worker Group: us-east4-b
[taskcluster 2024-10-29 15:37:49.990Z] Worker Node Type: projects/757942385826/machineTypes/n2-standard-4
[taskcluster 2024-10-29 15:37:49.990Z] Worker Pool: proj-wpt/ci
[taskcluster 2024-10-29 15:37:49.990Z] Worker Version: 46.1.0
[taskcluster 2024-10-29 15:37:49.990Z] Public IP: 34.86.42.239
[taskcluster 2024-10-29 15:37:49.990Z] Hostname: proj-wpt-ci-zg2bpvr0ttqlxyrhypes5a
560c024910be - Started downloading
ff2b96c8f8ff - Started downloading
ff2b96c8f8ff - Downloaded in 0.007 seconds
72ebe8ecf66d - Started downloading
430011f338a2 - Started downloading
430011f338a2 - Downloaded in 0.007 seconds
79df10d18997 - Started downloading
560c024910be - Downloaded in 0.197 seconds
4f4fb700ef54 - Started downloading
4f4fb700ef54 - Downloaded in 0.002 seconds
7e274023cae9 - Started downloading
...(379 lines hidden)...
Setting default value
Failed to read: session.screen0.allowRemoteActions
Setting default value
Failed to read: session.screen0.clientMenu.usePixmap
Setting default value
Failed to read: session.screen0.tabs.usePixmap
Setting default value
Failed to read: session.screen0.tabs.maxOver
Setting default value
Failed to read: session.screen0.tabs.intitlebar
Setting default value
Failed to read: session.screen0.focusModel
Setting default value
Failed to read: session.screen0.tabFocusModel
Setting default value
Failed to read: session.screen0.focusNewWindows
Setting default value
Failed to read: session.screen0.focusSameHead
Setting default value
Failed to read: session.screen0.rowPlacementDirection
Setting default value
Failed to read: session.screen0.colPlacementDirection
Setting default value
Failed to read: session.screen0.windowPlacement
Setting default value
Failed to read: session.screen0.slit.acceptKdeDockapps
Setting default value
Failed to read: session.screen0.slit.autoHide
Setting default value
Failed to read: session.screen0.slit.maxOver
Setting default value
Failed to read: session.screen0.slit.placement
Setting default value
Failed to read: session.screen0.slit.alpha
Setting default value
Failed to read: session.screen0.slit.onhead
Setting default value
Failed to read: session.screen0.slit.layer
Setting default value
Failed to read: session.screen0.toolbar.autoHide
Setting default value
Failed to read: session.screen0.toolbar.maxOver
Setting default value
Failed to read: session.screen0.toolbar.visible
Setting default value
Failed to read: session.screen0.toolbar.alpha
Setting default value
Failed to read: session.screen0.toolbar.layer
Setting default value
Failed to read: session.screen0.toolbar.onhead
Setting default value
Failed to read: session.screen0.toolbar.placement
Setting default value
Failed to read: session.screen0.toolbar.height
Setting default value
Failed to read: session.screen0.iconbar.mode
Setting default value
Failed to read: session.screen0.iconbar.alignment
Setting default value
Failed to read: session.screen0.iconbar.iconWidth
Setting default value
Failed to read: session.screen0.iconbar.iconTextPadding
Setting default value
Failed to read: session.screen0.iconbar.usePixmap
Setting default value
ERROR: Command errored out with exit status 1:
command: /home/test/web-platform-tests/_venv3/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8ms7bvhz/mozdebug/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8ms7bvhz/mozdebug/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-2majxjec
cwd: /tmp/pip-install-8ms7bvhz/mozdebug/
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Failed building wheel for mozdebug
ERROR: Command errored out with exit status 1:
command: /home/test/web-platform-tests/_venv3/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8ms7bvhz/mozlog/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8ms7bvhz/mozlog/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-wsmvkmnv
cwd: /tmp/pip-install-8ms7bvhz/mozlog/
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Failed building wheel for mozlog
0:00.00 INFO Set tests_root to /home/test/web-platform-tests
0:00.00 INFO Set metadata_root to /home/test/web-platform-tests
0:00.00 INFO Set manifest_update to True
0:00.00 INFO Set manifest_download to True
0:09.80 INFO Identified 1 affected tests
0:09.80 INFO Installing browser
0:09.82 INFO Downloading Chrome for Testing from https://storage.googleapis.com/chrome-for-testing-public/132.0.6793.2/linux64/chrome-linux64.zip
0:12.77 INFO Downloading Mojo bindings from https://storage.googleapis.com/chrome-for-testing-public/132.0.6793.2/mojojs.zip
0:12.83 INFO MojoJS enabled automatically (mojojs_path: /home/test/web-platform-tests/_venv3/mojojs/gen)
0:12.85 INFO Download info for matching ChromeDriver version found.
0:12.85 INFO Downloading ChromeDriver from https://storage.googleapis.com/chrome-for-testing-public/132.0.6793.2/linux64/chromedriver-linux64.zip
0:13.08 INFO Automatically turning on experimental features for Chrome Dev/Canary or Chromium trunk
0:18.61 INFO Installed font: Ahem.ttf
0:19.52 wptserve INFO Starting http server on http://127.0.0.1:8000
0:19.58 wptserve INFO Starting http server on http://127.0.0.1:8002
0:19.61 wptserve INFO Starting http server on http://127.0.0.1:8003
0:19.61 wptserve INFO Starting https server on https://127.0.0.1:8443
0:19.61 wptserve INFO Starting http server on http://127.0.0.1:8001
0:19.62 wptserve INFO Starting https server on https://127.0.0.1:8444
0:19.63 wptserve INFO Starting https server on https://127.0.0.1:8445
0:19.65 wptserve INFO Create socket on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
0:19.65 wptserve INFO Bind on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
0:19.65 wptserve INFO Listen on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
0:19.66 wptserve INFO Starting http2 server on https://127.0.0.1:9000
0:19.66 wptserve INFO Create socket on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
0:19.66 wptserve INFO Bind on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
0:19.66 wptserve INFO Listen on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
0:19.67 wptserve INFO Starting https server on https://127.0.0.1:8446
0:19.78 wptserve INFO Starting WebTransport over HTTP/3 server on 127.0.0.1:11000
0:20.14 SUITE_START: web-platform-test - running 1 tests
0:24.90 INFO Using 1 child processes
0:24.91 INFO Starting WebDriver: /home/test/web-platform-tests/_venv3/bin/chrome/chromedriver --port=54143 --ignore-explicit-port --url-base=/ --enable-chrome-logs --disable-build-check
0:24.92 INFO Got WebDriver port 43017
0:25.02 pid:2092 Full command: /home/test/web-platform-tests/_venv3/bin/chrome/chromedriver --port=54143 --ignore-explicit-port --url-base=/ --enable-chrome-logs --disable-build-check
pid:2092 Starting ChromeDriver 132.0.6793.2 (b39907d62aa9c705221c7f810277594a8fcda94b-refs/branch-heads/6793@{#5}) on port 0
0:25.02 pid:2092 Only local connections are allowed.
0:25.02 pid:2092 Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
0:25.02 pid:2092 ChromeDriver was started successfully on port 43017.
0:25.02 INFO Webdriver started successfully.
0:25.02 INFO Starting runner
0:25.39 pid:2092 [2109:2109:1029/154021.064178:WARNING:field_trial_util.cc(106)] Field trial config study skipped: CookieSameSiteConsidersRedirectChainDesktop.Enabled (some of its features are already overridden)
0:25.52 pid:2092 [2143:2143:1029/154021.202807:WARNING:gpu_memory_buffer_support_x11.cc(49)] dri3 extension not supported.
0:25.53 pid:2092 [2143:2143:1029/154021.204572:WARNING:sandbox_linux.cc(430)] InitializeSandbox() called with multiple threads in process gpu-process.
0:25.53 pid:2092 [2143:2143:1029/154021.205643:WARNING:viz_main_impl.cc(85)] VizNullHypothesis is disabled (not a warning)
0:26.00 pid:2092
0:26.00 pid:2092 DevTools listening on ws://127.0.0.1:34427/devtools/browser/cd64a9ed-d98b-4a46-b952-30113cd5da3c
Failed to read: session.screen0.titlebar.left
Setting default value
Failed to read: session.screen0.titlebar.right
Setting default value
0:26.11 pid:2092 [1730216421.785][WARNING]: You are using an unsupported command-line switch: --disable-build-check. Please don't report bugs that cannot be reproduced with this switch removed.
0:26.11 pid:2092 [2109:2205:1029/154021.789668:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
0:26.11 pid:2092 [2109:2205:1029/154021.789683:WARNING:property.cc(149)] DaemonVersion: GetAndBlock: failed.
0:26.11 pid:2092 [2109:2205:1029/154021.789889:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
0:26.11 pid:2092 [2109:2205:1029/154021.790289:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
0:26.23 TEST_START: /content-security-policy/parsing/invalid-bytes.html
0:26.48 pid:2092 [2109:2109:1029/154022.162267:INFO:CONSOLE(0)] "The value for the Content-Security-Policy directive 'frame-ancestors' contains one or more invalid characters. In a source expression, non-whitespace characters outside ASCII 0x21-0x7E must be Punycode-encoded, as described in RFC 3492 (https://tools.ietf.org/html/rfc3492), if part of the hostname and percent-encoded, as described in RFC 3986, section 2.1 (http://tools.ietf.org/html/rfc3986#section-2.1), if part of the path.", source: http://web-platform.test:8000/content-security-policy/parsing/support/csp.py?policy=frame-ancestors%20%27none%27&hexbyte=01 (0)
0:26.49 pid:2092 [2109:2109:1029/154022.168417:INFO:CONSOLE(0)] "The value for the Content-Security-Policy directive 'frame-ancestors' contains one or more invalid characters. In a source expression, non-whitespace characters outside ASCII 0x21-0x7E must be Punycode-encoded, as described in RFC 3492 (https://tools.ietf.org/html/rfc3492), if part of the hostname and percent-encoded, as described in RFC 3986, section 2.1 (http://tools.ietf.org/html/rfc3986#section-2.1), if part of the path.", source: http://web-platform.test:8000/content-security-policy/parsing/support/csp.py?policy=frame-ancestors%20%27none%27%20http&hexbyte=01 (0)
0:26.49 pid:2092 [2109:2109:1029/154022.169697:INFO:CONSOLE(0)] "The value for the Content-Security-Policy directive 'frame-ancestors' contains one or more invalid characters. In a source expression, non-whitespace characters outside ASCII 0x21-0x7E must be Punycode-encoded, as described in RFC 3492 (https://tools.ietf.org/html/rfc3492), if part of the hostname and percent-encoded, as described in RFC 3986, section 2.1 (http://tools.ietf.org/html/rfc3986#section-2.1), if part of the path.", source: http://web-platform.test:8000/content-security-policy/parsing/support/csp.py?policy=frame-ancestors%20%27self%27&hexbyte=01 (0)
0:26.49 pid:2092 [2109:2109:1029/154022.171086:INFO:CONSOLE(0)] "The value for the Content-Security-Policy directive 'frame-ancestors' contains one or more invalid characters. In a source expression, non-whitespace characters outside ASCII 0x21-0x7E must be Punycode-encoded, as described in RFC 3492 (https://tools.ietf.org/html/rfc3492), if part of the hostname and percent-encoded, as described in RFC 3986, section 2.1 (http://tools.ietf.org/html/rfc3986#section-2.1), if part of the path.", source: http://web-platform.test:8000/content-security-policy/parsing/support/csp.py?policy=frame-ancestors%20%27self%27,%20frame-ancestors%20%27self%27&hexbyte=01 (0)
0:26.50 pid:2092 [2109:2109:1029/154022.172863:INFO:CONSOLE(0)] "The Content-Security-Policy directive name 'frame-ancestors�' contains one or more invalid characters. Only ASCII alphanumeric characters or dashes '-' are allowed in directive names.", source: http://web-platform.test:8000/content-security-policy/parsing/support/csp.py?policy=frame-ancestors%20%27self%27,%20frame-ancestors&hexbyte=01 (0)
0:26.50 pid:2092 [2109:2109:1029/154022.177198:INFO:CONSOLE(0)] "The value for the Content-Security-Policy directive 'frame-ancestors' contains one or more invalid characters. In a source expression, non-whitespace characters outside ASCII 0x21-0x7E must be Punycode-encoded, as described in RFC 3492 (https://tools.ietf.org/html/rfc3492), if part of the hostname and percent-encoded, as described in RFC 3986, section 2.1 (http://tools.ietf.org/html/rfc3986#section-2.1), if part of the path.", source: http://web-platform.test:8000/content-security-policy/parsing/support/csp.py?policy=frame-ancestors%20%27none%27&hexbyte=7f (0)
0:26.50 pid:2092 [2109:2109:1029/154022.178657:INFO:CONSOLE(0)] "The value for the Content-Security-Policy directive 'script-src' contains one or more invalid characters. In a source expression, non-whitespace characters outside ASCII 0x21-0x7E must be Punycode-encoded, as described in RFC 3492 (https://tools.ietf.org/html/rfc3492), if part of the hostname and percent-encoded, as described in RFC 3986, section 2.1 (http://tools.ietf.org/html/rfc3986#section-2.1), if part of the path.", source: http://web-platform.test:8000/content-security-policy/parsing/support/csp.py?policy=frame-ancestors%20%27self%27;%20script-src%20%27self%27&hexbyte=01 (0)
0:26.50 pid:2092 [2109:2109:1029/154022.180052:INFO:CONSOLE(0)] "Refused to frame 'http://web-platform.test:8000/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".
0:26.50 pid:2092 ", source: (0)
0:26.51 pid:2092 [2109:2109:1029/154022.184608:INFO:CONSOLE(0)] "Refused to frame 'http://web-platform.test:8000/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".
0:26.51 pid:2092 ", source: (0)
0:26.53 pid:2092 [2109:2109:1029/154022.205756:INFO:CONSOLE(0)] "Refused to frame 'http://web-platform.test:8000/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".
0:26.53 pid:2092 ", source: (0)
0:26.56 pid:2092 [2109:2109:1029/154022.238091:INFO:CONSOLE(0)] "The value for the Content-Security-Policy directive 'frame-ancestors' contains one or more invalid characters. In a source expression, non-whitespace characters outside ASCII 0x21-0x7E must be Punycode-encoded, as described in RFC 3492 (https://tools.ietf.org/html/rfc3492), if part of the hostname and percent-encoded, as described in RFC 3986, section 2.1 (http://tools.ietf.org/html/rfc3986#section-2.1), if part of the path.", source: http://web-platform.test:8000/content-security-policy/parsing/support/csp.py?policy=frame-ancestors%20%27self%27&hexbyte=7f (0)
0:26.56 pid:2092 [2109:2109:1029/154022.239971:INFO:CONSOLE(0)] "The value for the Content-Security-Policy directive 'frame-ancestors' contains one or more invalid characters. In a source expression, non-whitespace characters outside ASCII 0x21-0x7E must be Punycode-encoded, as described in RFC 3492 (https://tools.ietf.org/html/rfc3492), if part of the hostname and percent-encoded, as described in RFC 3986, section 2.1 (http://tools.ietf.org/html/rfc3986#section-2.1), if part of the path.", source: http://web-platform.test:8000/content-security-policy/parsing/support/csp.py?policy=frame-ancestors%20%27none%27%20http&hexbyte=7f (0)
0:26.60 pid:2092 [2109:2109:1029/154022.279490:INFO:CONSOLE(0)] "The value for the Content-Security-Policy directive 'script-src' contains one or more invalid characters. In a source expression, non-whitespace characters outside ASCII 0x21-0x7E must be Punycode-encoded, as described in RFC 3492 (https://tools.ietf.org/html/rfc3492), if part of the hostname and percent-encoded, as described in RFC 3986, section 2.1 (http://tools.ietf.org/html/rfc3986#section-2.1), if part of the path.", source: http://web-platform.test:8000/content-security-policy/parsing/support/csp.py?policy=frame-ancestors%20%27self%27;%20script-src%20%27self%27&hexbyte=7f (0)
0:26.60 pid:2092 [2109:2109:1029/154022.281144:INFO:CONSOLE(0)] "Refused to frame 'http://web-platform.test:8000/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".
0:26.60 pid:2092 ", source: (0)
0:26.62 pid:2092 [2109:2109:1029/154022.293739:INFO:CONSOLE(0)] "The value for the Content-Security-Policy directive 'frame-ancestors' contains one or more invalid characters. In a source expression, non-whitespace characters outside ASCII 0x21-0x7E must be Punycode-encoded, as described in RFC 3492 (https://tools.ietf.org/html/rfc3492), if part of the hostname and percent-encoded, as described in RFC 3986, section 2.1 (http://tools.ietf.org/html/rfc3986#section-2.1), if part of the path.", source: http://web-platform.test:8000/content-security-policy/parsing/support/csp.py?policy=frame-ancestors%20%27self%27,%20frame-ancestors%20%27self%27&hexbyte=7f (0)
0:26.62 pid:2092 [2109:2109:1029/154022.296497:INFO:CONSOLE(0)] "Refused to frame 'http://web-platform.test:8000/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".
0:26.62 pid:2092 ", source: (0)
0:26.63 pid:2092 [2109:2109:1029/154022.307711:INFO:CONSOLE(0)] "Refused to frame 'http://web-platform.test:8000/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".
0:26.63 pid:2092 ", source: (0)
0:26.64 pid:2092 [2109:2109:1029/154022.313580:INFO:CONSOLE(0)] "The Content-Security-Policy directive name 'frame-ancestors�' contains one or more invalid characters. Only ASCII alphanumeric characters or dashes '-' are allowed in directive names.", source: http://web-platform.test:8000/content-security-policy/parsing/support/csp.py?policy=frame-ancestors%20%27self%27,%20frame-ancestors&hexbyte=7f (0)
0:26.77 TEST_END: Test OK. Subtests passed 27/27. Unexpected 0
0:26.77 INFO No more tests
0:26.83 INFO Closing logging queue
0:26.83 INFO queue closed
0:26.89 SUITE_END
web-platform-test
~~~~~~~~~~~~~~~~~
Ran 28 checks (27 subtests, 1 tests)
Expected results: 28
Unexpected results: 0
OK
0:26.89 INFO Got 0 unexpected results, with 0 unexpected passes
0:26.89 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
0:27.15 wptserve INFO Stopped http server on 127.0.0.1:8001
0:27.15 wptserve INFO Stopped http server on 127.0.0.1:8443
0:27.15 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
0:27.15 wptserve INFO Stopped http server on 127.0.0.1:8002
0:27.15 wptserve INFO Stopped http server on 127.0.0.1:8444
0:27.15 wptserve INFO Stopped http server on 127.0.0.1:8003
0:27.15 wptserve INFO Stopped http server on 127.0.0.1:8445
0:27.15 wptserve INFO Stopped http server on 127.0.0.1:8446
0:27.15 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
0:27.15 wptserve INFO Stopped http server on 127.0.0.1:9000
0:27.37 wptserve INFO Stopped http server on 127.0.0.1:8000
0:27.41 INFO Removed font: Ahem.ttf
0:27.43 INFO Closing logging queue
0:27.43 INFO queue closed
[taskcluster 2024-10-29 15:40:28.173Z] === Task Finished ===
[taskcluster 2024-10-29 15:40:29.097Z] Successful task run with exit code: 0 completed in 159.11 seconds