fune/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/css-module
Dan Clark 4600d4be2e Bug 1732029 [wpt PR 30806] - Don't do a fetch for attempts to import CSS module scripts in workers, a=testonly
Automatic update from web-platform-tests
Don't do a fetch for attempts to import CSS module scripts in workers

For attempts to import CSS module scripts in non-Document contexts,
fail when initially validating specifiers and asserted types, rather
than later when we are about to create the module script.

This avoids an extra pointless fetch.

See corresponding spec change
at https://github.com/whatwg/html/pull/7066/

Change-Id: I7fd64ee47d09e3001cc63d9d828ee3ab225e407e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3161478
Commit-Queue: Dan Clark <daniec@microsoft.com>
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Reviewed-by: Domenic Denicola <domenic@chromium.org>
Cr-Commit-Position: refs/heads/main@{#923021}

--

wpt-commits: 1b3385871f3621acc91c76b806758f883a6cb82a
wpt-pr: 30806
2021-10-04 00:19:52 +00:00
..
resources
charset-2.html
charset-bom.html
charset.html
content-type-checking.html
cors-crossorigin-requests.html
credentials.sub.html
css-module-worker-test.html
import-css-module-basic.html
import-css-module-dynamic.html
integrity.html
load-error-events.html
referrer-policies.sub.html
relative-urls.html
script-element-css-src.html