Worker's dynamic import scripts should have different content policy types than worker's static import scripts.
Categories
(Core :: DOM: Workers, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox118 | --- | fixed |
People
(Reporter: allstars.chh, Assigned: allstars.chh)
References
(Blocks 1 open bug)
Details
Attachments
(3 files, 2 obsolete files)
Currently worker's dynamic import scripts are using the the content policy type nsIContentPolicy::TYPE_INTERNAL_WORKER_STATIC_MODULE, which is wrong.
Assignee | ||
Comment 1•1 year ago
|
||
For dynamic import, its destination is "script".
See https://html.spec.whatwg.org/multipage/webappapis.html#hostloadimportedmodule,
step 10.
Let destination be "script".
According to the destination table in HTML spec.
https://fetch.spec.whatwg.org/#destination-table
We can reuse the existing content policy type TYPE_INTERNAL_WORKER_IMPORT_SCRIPTS
for worker's dynamic import scripts, without creating a new one for it.
Updated•1 year ago
|
Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
Assignee | ||
Comment 3•1 year ago
|
||
For dynamic import, its destination is "script".
See https://html.spec.whatwg.org/multipage/webappapis.html#hostloadimportedmodule,
step 10.
Let destination be "script".
Updated•1 year ago
|
Assignee | ||
Comment 4•1 year ago
|
||
Updated•1 year ago
|
Assignee | ||
Comment 5•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 8•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/cfb6d2f457db
https://hg.mozilla.org/mozilla-central/rev/c2b0f04c34d3
https://hg.mozilla.org/mozilla-central/rev/a229f36ddd39
Description
•