Skip to content

[import-bytes] add initial tests for import bytes proposal#56938

Open
styfle wants to merge 2 commits into
web-platform-tests:masterfrom
styfle:styfle/import-bytes
Open

[import-bytes] add initial tests for import bytes proposal#56938
styfle wants to merge 2 commits into
web-platform-tests:masterfrom
styfle:styfle/import-bytes

add test for `connect-src`

64410ac
Select commit
Loading
Failed to load commit list.
Community-TC Integration / wpt-chrome-dev-stability succeeded May 8, 2026 in 15m 6s

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: 2026-05-08T02:36:59.830Z
Resolved: 2026-05-08T02:46:05.474Z
Task Execution Time: 9 minutes, 5 seconds, 644 milliseconds
Task Status: completed
Reason Resolved: completed
TaskId: cjJY6yDsRSirZtDe4q3dkw
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 --verify-log-full --no-headless --enable-swiftshader --install-browser --install-webdriver chrome


[taskcluster 2026-05-08 02:36:59.947Z] Task ID: cjJY6yDsRSirZtDe4q3dkw
[taskcluster 2026-05-08 02:36:59.947Z] Worker ID: 4762811721487282894
[taskcluster 2026-05-08 02:36:59.947Z] Worker Group: us-east4-b
[taskcluster 2026-05-08 02:36:59.947Z] Worker Node Type: projects/757942385826/machineTypes/n2-standard-4
[taskcluster 2026-05-08 02:36:59.947Z] Worker Pool: proj-wpt/ci
[taskcluster 2026-05-08 02:36:59.947Z] Worker Version: 46.1.0
[taskcluster 2026-05-08 02:36:59.947Z] Public IP: 34.86.2.242
[taskcluster 2026-05-08 02:36:59.947Z] Hostname: proj-wpt-ci-bwq5m-u2spe5qpwon9dgoq

66587c81b81a - Started downloading
b1e71f63927a - Started downloading
b1e71f63927a - Downloaded in 0.005 seconds
5b82b858ea7e - Started downloading
08c7e224535e - Started downloading
08c7e224535e - Downloaded in 0.009 seconds
66587c81b81a - Downloaded in 0.229 seconds
32bbaaf98e4c - Started downloading
4f4fb700ef54 - Started downloading
4f4fb700ef54 - Downloaded in 0.002 seconds
dd5257950bd4 - Started downloading

...(21292 lines hidden)...

    at assert (http://web-platform.test:8000/resources/testharness.js:4779:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at http://web-platform.test:8000/resources/testharness.js:2916:35
  FAIL Extension: file.bin - promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4802:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4795:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4779:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at http://web-platform.test:8000/resources/testharness.js:2916:35
  FAIL Extension: file.js - promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4802:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4795:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4779:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at http://web-platform.test:8000/resources/testharness.js:2916:35
  FAIL Extension: file.txt - promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4802:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4795:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4779:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at http://web-platform.test:8000/resources/testharness.js:2916:35
  FAIL Extension: file - promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4802:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4795:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4779:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at http://web-platform.test:8000/resources/testharness.js:2916:35
  FAIL Extension: file.bin - promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4802:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4795:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4779:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at http://web-platform.test:8000/resources/testharness.js:2916:35
  FAIL Extension: file.js - promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4802:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4795:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4779:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at http://web-platform.test:8000/resources/testharness.js:2916:35
  FAIL Extension: file.txt - promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4802:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4795:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4779:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at http://web-platform.test:8000/resources/testharness.js:2916:35
/html/semantics/scripting-1/the-script-element/bytes-module/sync-module.html
  NOTRUN Bytes modules
  ERROR /html/semantics/scripting-1/the-script-element/bytes-module/sync-module.html - Uncaught TypeError: "bytes" is not a valid module type.
TypeError: "bytes" is not a valid module type.
  NOTRUN Bytes modules
  ERROR /html/semantics/scripting-1/the-script-element/bytes-module/sync-module.html - Uncaught TypeError: "bytes" is not a valid module type.
TypeError: "bytes" is not a valid module type.
  NOTRUN Bytes modules
  ERROR /html/semantics/scripting-1/the-script-element/bytes-module/sync-module.html - Uncaught TypeError: "bytes" is not a valid module type.
TypeError: "bytes" is not a valid module type.
  NOTRUN Bytes modules
  ERROR /html/semantics/scripting-1/the-script-element/bytes-module/sync-module.html - Uncaught TypeError: "bytes" is not a valid module type.
TypeError: "bytes" is not a valid module type.
  NOTRUN Bytes modules
  ERROR /html/semantics/scripting-1/the-script-element/bytes-module/sync-module.html - Uncaught TypeError: "bytes" is not a valid module type.
TypeError: "bytes" is not a valid module type.
  NOTRUN Bytes modules
  ERROR /html/semantics/scripting-1/the-script-element/bytes-module/sync-module.html - Uncaught TypeError: "bytes" is not a valid module type.
TypeError: "bytes" is not a valid module type.
  NOTRUN Bytes modules
  ERROR /html/semantics/scripting-1/the-script-element/bytes-module/sync-module.html - Uncaught TypeError: "bytes" is not a valid module type.
TypeError: "bytes" is not a valid module type.
  NOTRUN Bytes modules
  ERROR /html/semantics/scripting-1/the-script-element/bytes-module/sync-module.html - Uncaught TypeError: "bytes" is not a valid module type.
TypeError: "bytes" is not a valid module type.
  NOTRUN Bytes modules
  ERROR /html/semantics/scripting-1/the-script-element/bytes-module/sync-module.html - Uncaught TypeError: "bytes" is not a valid module type.
TypeError: "bytes" is not a valid module type.
  NOTRUN Bytes modules
  ERROR /html/semantics/scripting-1/the-script-element/bytes-module/sync-module.html - Uncaught TypeError: "bytes" is not a valid module type.
TypeError: "bytes" is not a valid module type.
 6:40.75 INFO Got 110 unexpected results, with 0 unexpected passes
 6:40.76 wptserve INFO Stopped http server on 127.0.0.1:8000
 6:40.76 wptserve INFO Stopped http server on 127.0.0.1:8001
 6:40.77 wptserve INFO Stopped http server on 127.0.0.1:8002
 6:40.77 wptserve INFO Stopped http server on 127.0.0.1:8443
 6:40.77 wptserve INFO Stopped http server on 127.0.0.1:8003
 6:40.77 wptserve INFO Stopped http server on 127.0.0.1:8444
 6:40.78 wptserve INFO Stopped http server on 127.0.0.1:8445
 6:40.78 wptserve INFO Stopped http server on 127.0.0.1:8446
 6:40.78 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
 6:40.78 wptserve INFO Stopped http server on 127.0.0.1:9000
 6:41.08 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
 6:41.08 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
 6:41.11 INFO Removed font: Ahem.ttf
 6:41.13 INFO Closing logging queue
 6:41.14 INFO queue closed
 6:41.15 INFO ::: Ran 10 of expected 10 iterations.
 6:41.15 INFO ## All results ##

 6:41.15 INFO ### /content-security-policy/connect-src/connect-src-bytes-import-blocked.sub.html ###
 6:41.15 INFO |                          Subtest                          | Results |     Messages     |
 6:41.15 INFO |-----------------------------------------------------------|---------|------------------|
 6:41.15 INFO |                                                           | TIMEOUT |                  |
 6:41.15 INFO | `Import with type bytes should be blocked by connect-src` | TIMEOUT | `Test timed out` |
 6:41.15 INFO 
 6:41.15 INFO ### /html/semantics/scripting-1/the-script-element/bytes-module/charset-1250.html ###
 6:41.15 INFO | Subtest | Results | Messages |
 6:41.15 INFO |---------|---------|----------|
 6:41.15 INFO |         | ERROR   |          |
 6:41.15 INFO 
 6:41.15 INFO ### /html/semantics/scripting-1/the-script-element/bytes-module/charset-bom.any.html ###
 6:41.15 INFO |                        Subtest                        | Results |                                                 Messages                                                |
 6:41.15 INFO |-------------------------------------------------------|---------|---------------------------------------------------------------------------------------------------------|
 6:41.15 INFO |                                                       | OK      |                                                                                                         |
 6:41.15 INFO | `UTF-8 BOM should be ignored when importing bytes`    | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.15 INFO | `UTF-16BE BOM should be ignored when importing bytes` | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.15 INFO | `UTF-16LE BOM should be ignored when importing bytes` | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.15 INFO 
 6:41.15 INFO ### /html/semantics/scripting-1/the-script-element/bytes-module/charset-bom.any.worker.html ###
 6:41.15 INFO |                        Subtest                        | Results |                                                 Messages                                                |
 6:41.15 INFO |-------------------------------------------------------|---------|---------------------------------------------------------------------------------------------------------|
 6:41.15 INFO |                                                       | OK      |                                                                                                         |
 6:41.15 INFO | `UTF-8 BOM should be ignored when importing bytes`    | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.15 INFO | `UTF-16BE BOM should be ignored when importing bytes` | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.15 INFO | `UTF-16LE BOM should be ignored when importing bytes` | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.15 INFO 
 6:41.15 INFO ### /html/semantics/scripting-1/the-script-element/bytes-module/charset-bom.any.sharedworker.html ###
 6:41.15 INFO |                        Subtest                        | Results |                                                 Messages                                                |
 6:41.15 INFO |-------------------------------------------------------|---------|---------------------------------------------------------------------------------------------------------|
 6:41.15 INFO |                                                       | OK      |                                                                                                         |
 6:41.15 INFO | `UTF-8 BOM should be ignored when importing bytes`    | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.15 INFO | `UTF-16BE BOM should be ignored when importing bytes` | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.15 INFO | `UTF-16LE BOM should be ignored when importing bytes` | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.15 INFO 
 6:41.15 INFO ### /html/semantics/scripting-1/the-script-element/bytes-module/charset.html ###
 6:41.15 INFO | Subtest | Results | Messages |
 6:41.15 INFO |---------|---------|----------|
 6:41.15 INFO |         | ERROR   |          |
 6:41.15 INFO 
 6:41.15 INFO ### /html/semantics/scripting-1/the-script-element/bytes-module/ignore-content-type.html ###
 6:41.15 INFO |            Subtest             | Results | Messages |
 6:41.15 INFO |--------------------------------|---------|----------|
 6:41.15 INFO |                                | ERROR   |          |
 6:41.15 INFO | `image/png`                    | NOTRUN  |          |
 6:41.15 INFO | `application/octet-stream`     | NOTRUN  |          |
 6:41.15 INFO | `application/binary`           | NOTRUN  |          |
 6:41.15 INFO | `image/svg+xml`                | NOTRUN  |          |
 6:41.15 INFO | `image/png;boundary=something` | NOTRUN  |          |
 6:41.15 INFO | `text/html`                    | NOTRUN  |          |
 6:41.15 INFO 
 6:41.15 INFO ### /html/semantics/scripting-1/the-script-element/bytes-module/ignore-extension.any.worker.html ###
 6:41.15 INFO |        Subtest        | Results |                                                 Messages                                                |
 6:41.15 INFO |-----------------------|---------|---------------------------------------------------------------------------------------------------------|
 6:41.15 INFO |                       | OK      |                                                                                                         |
 6:41.15 INFO | `Extension: file`     | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.15 INFO | `Extension: file.bin` | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.15 INFO | `Extension: file.js`  | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.15 INFO | `Extension: file.txt` | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.15 INFO 
 6:41.16 INFO ### /html/semantics/scripting-1/the-script-element/bytes-module/ignore-extension.any.sharedworker.html ###
 6:41.16 INFO |        Subtest        | Results |                                                 Messages                                                |
 6:41.16 INFO |-----------------------|---------|---------------------------------------------------------------------------------------------------------|
 6:41.16 INFO |                       | OK      |                                                                                                         |
 6:41.16 INFO | `Extension: file`     | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.16 INFO | `Extension: file.bin` | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.16 INFO | `Extension: file.js`  | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.16 INFO | `Extension: file.txt` | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.16 INFO 
 6:41.16 INFO ### /html/semantics/scripting-1/the-script-element/bytes-module/ignore-extension.any.html ###
 6:41.16 INFO |        Subtest        | Results |                                                 Messages                                                |
 6:41.16 INFO |-----------------------|---------|---------------------------------------------------------------------------------------------------------|
 6:41.16 INFO |                       | OK      |                                                                                                         |
 6:41.16 INFO | `Extension: file`     | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.16 INFO | `Extension: file.bin` | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.16 INFO | `Extension: file.js`  | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.16 INFO | `Extension: file.txt` | FAIL    | `promise_test: Unhandled rejection with value: object "TypeError: "bytes" is not a valid module type."` |
 6:41.16 INFO 
 6:41.16 INFO ### /html/semantics/scripting-1/the-script-element/bytes-module/sync-module.html ###
 6:41.16 INFO |     Subtest     | Results | Messages |
 6:41.16 INFO |-----------------|---------|----------|
 6:41.16 INFO |                 | ERROR   |          |
 6:41.16 INFO | `Bytes modules` | NOTRUN  |          |
 6:41.16 INFO 
 6:41.16 INFO ::: Running tests in a loop with restarts 10 times : PASS
 6:41.16 INFO :::
 6:41.16 INFO ::: Test verification PASS
 6:41.16 INFO :::
[taskcluster 2026-05-08 02:46:04.319Z] === Task Finished ===
[taskcluster 2026-05-08 02:46:04.759Z] Successful task run with exit code: 0 completed in 544.814 seconds