importScripts() inside a service worker should ensure that the response has a JavaScript MIME type, as per: - https://w3c.github.io/ServiceWorker/#importscripts (step 6)
Created attachment 330065 [details] Patch
Comment on attachment 330065 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=330065&action=review > Source/WebCore/workers/WorkerGlobalScope.cpp:271 > // FIXME: Fully implement https://w3c.github.io/ServiceWorker/#importscripts. Is this FIXME still relevant? If so, can it be made more precise? > LayoutTests/imported/w3c/ChangeLog:23 > + * web-platform-tests/service-workers/service-worker/registration-mime-types.https-expected.txt: Can we fix the test in this patch and submit a corresponding WPT PR. If we discover during the PR that we should revert the test change, we could update our WebKit WPT test and our implementation in a follow-up patch.
Created attachment 330139 [details] Patch
Comment on attachment 330139 [details] Patch Clearing flags on attachment: 330139 Committed r226275: <https://trac.webkit.org/changeset/226275>
All reviewed patches have been landed. Closing bug.
<rdar://problem/36197500>