-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block import() in service workers #6395
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder why this uses "implements" rather than "is", but I guess it's okay.
Tests: web-platform-tests/wpt#27699 |
Can you restore the pull request template? In particular links showing multi-implementer support would be useful, since apparently Firefox and Safari currently support |
Firefox is supportive, FWIW. cc @codehag |
Done, sorry about that.
I usually file those just-before-merging (in case there's any changes through discussion beforehand). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds like folks are on board with this; merging! Please file bugs and edit the OP when they're ready.
https://bugs.webkit.org/show_bug.cgi?id=222308 Reviewed by Youenn Fablet. LayoutTests/imported/w3c: Covering service-worker case. * web-platform-tests/service-workers/service-worker/import-module-scripts.https-expected.txt: Source/WebCore: dynamic-import should be always rejected if script is executed in Worklets or ServiceWorkers. This is recently changed in the spec whatwg/html#6395. * bindings/js/ScriptModuleLoader.cpp: (WebCore::isWorkletOrServiceWorker): (WebCore::ScriptModuleLoader::importModule): LayoutTests: Covering worklet case. * http/wpt/webaudio/the-audio-api/the-audioworklet-interface/dynamic-import-is-prohibited.https-expected.txt: Added. * http/wpt/webaudio/the-audio-api/the-audioworklet-interface/dynamic-import-is-prohibited.https.html: Added. * http/wpt/webaudio/the-audio-api/the-audioworklet-interface/processors/dynamic-import-is-prohibited.js: Added. (DynamicImportIsProhibitedProcessor.prototype.process): (DynamicImportIsProhibitedProcessor): Canonical link: https://commits.webkit.org/235271@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@274404 268f45cc-cd09-0410-ab3c-d52691b4dbfc
https://bugs.webkit.org/show_bug.cgi?id=222308 Reviewed by Youenn Fablet. LayoutTests/imported/w3c: Covering service-worker case. * web-platform-tests/service-workers/service-worker/import-module-scripts.https-expected.txt: Source/WebCore: dynamic-import should be always rejected if script is executed in Worklets or ServiceWorkers. This is recently changed in the spec whatwg/html#6395. * bindings/js/ScriptModuleLoader.cpp: (WebCore::isWorkletOrServiceWorker): (WebCore::ScriptModuleLoader::importModule): LayoutTests: Covering worklet case. * http/wpt/webaudio/the-audio-api/the-audioworklet-interface/dynamic-import-is-prohibited.https-expected.txt: Added. * http/wpt/webaudio/the-audio-api/the-audioworklet-interface/dynamic-import-is-prohibited.https.html: Added. * http/wpt/webaudio/the-audio-api/the-audioworklet-interface/processors/dynamic-import-is-prohibited.js: Added. (DynamicImportIsProhibitedProcessor.prototype.process): (DynamicImportIsProhibitedProcessor): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@274404 268f45cc-cd09-0410-ab3c-d52691b4dbfc
…estonly Automatic update from web-platform-tests No dynamic import in service worker (#27699) Part of whatwg/html#6395 and w3c/ServiceWorker#1356 -- wpt-commits: a02460e35145989c6fe2365f03d1b0006f381d9d wpt-pr: 27699
…estonly Automatic update from web-platform-tests No dynamic import in service worker (#27699) Part of whatwg/html#6395 and w3c/ServiceWorker#1356 -- wpt-commits: a02460e35145989c6fe2365f03d1b0006f381d9d wpt-pr: 27699 UltraBlame original commit: 4f89a146b69c4b14730d2418cbac4447c6ac461a
…estonly Automatic update from web-platform-tests No dynamic import in service worker (#27699) Part of whatwg/html#6395 and w3c/ServiceWorker#1356 -- wpt-commits: a02460e35145989c6fe2365f03d1b0006f381d9d wpt-pr: 27699 UltraBlame original commit: 4f89a146b69c4b14730d2418cbac4447c6ac461a
…estonly Automatic update from web-platform-tests No dynamic import in service worker (#27699) Part of whatwg/html#6395 and w3c/ServiceWorker#1356 -- wpt-commits: a02460e35145989c6fe2365f03d1b0006f381d9d wpt-pr: 27699 UltraBlame original commit: 4f89a146b69c4b14730d2418cbac4447c6ac461a
(See WHATWG Working Mode: Changes for more details.)
Spec work for w3c/ServiceWorker#1356.
/webappapis.html ( diff )