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

UltraBlame original commit: 6e401be8c58633271e8a0813f2b9e98df1d5af8e
  • Loading branch information
marco-c committed Sep 29, 2023
1 parent 480077f commit 20f56b9
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,38 @@ 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
Expand Up @@ -15,3 +15,38 @@ 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 20f56b9

Please sign in to comment.