Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1831583 - Part 4: Mark [Static import (redirect).] failed as expe…
…cted in dedicated-worker-import-data-url.any.js and shared-worker-import-data-url.window.js. r=dom-worker-reviewers,asuth In this test, The worker will load a data URI, which import another test script statically, and the imported script will import 'export-on-load-script.js', which will be served with the CORS header 'Access-Control-Allow-Origin: *' in /workers/modules/resources/export-on-load-script.js.headers In the test case [Static import (redirect).], 'export-on-load-script.js' will be redirected, and the redirected script doesn't have the CORS header. According the current spec, the redirected 'export-on-load-script.js' is in the same-origin with the document, therefore it should be loaded. But with Gecko's implementation, the redirected script "export-on-load-script.js" is cross-origin with the main worker script (which is loaded by data URI), so the script is blocked. (The first test case, which tests static import without redirect, the script 'export-on-load-script.js' could be loaded by Gecko because the script has the CORS header.) Mark this test case as failed according to the spec issue whatwg/html#9571 Differential Revision: https://phabricator.services.mozilla.com/D187901
- Loading branch information