Skip to content

Commit

Permalink
Bug 1831583 - Part 3: Mark [static import script from data: URL shoul…
Browse files Browse the repository at this point in the history
…d be allowed.] failed as expected in [shared|dedicated]-worker-import-data-url-cross-origin.html.ini. r=dom-worker-reviewers,asuth

In the [static import script from data: URL should be allowed.] case,
The worker will load the data URI, which imports "/resources/static-import-script-block-cross-origin.js".

And static-import-script-block-cross-origin.js will static import 'export-block-cross-origin.js'

According to the current spec, the script "export-block-cross-origin.js"
is in the same origin of the document, therefore it should be loaded.

But with Gecko's implementation, the script "export-block-cross-origin.js"
is cross-origin with the main worker script (which is loaded by data URI),
so the script is blocked.

Mark this test case as failed according to the spec issue
whatwg/html#9571

Differential Revision: https://phabricator.services.mozilla.com/D187900
  • Loading branch information
allstarschh committed Sep 25, 2023
1 parent 610c2ff commit 10c36e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
[dedicated-worker-import-data-url-cross-origin.html]
[static import script from data: URL should be allowed.]
bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1841363
expected: FAIL
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
[shared-worker-import-data-url-cross-origin.html]
[static import script from data: URL should be allowed.]
bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1841363
expected: FAIL

0 comments on commit 10c36e5

Please sign in to comment.