Trusted Types policies should not apply to isolated WebExtension content scripts - part 3
Categories
(Core :: DOM: Security, enhancement)
Tracking
()
People
(Reporter: fwang, Unassigned)
References
(Depends on 2 open bugs, Blocks 1 open bug)
Details
Attachments
(1 obsolete file)
Followup of bug 1947732 and 1986632, covering eval/new Function in workers.
| Reporter | ||
Comment 1•10 months ago
|
||
| Reporter | ||
Comment 2•10 months ago
|
||
(In reply to Frédéric Wang (:fredw) from comment #0)
Followup of bug 1947732 and 1986632, covering eval/new Function in workers.
Just to be clear, I was referring to this part where we pass nullptr as a subject principal: https://searchfox.org/firefox-main/rev/955360e8e3a773601c56f08069449d8d9261b873/dom/workers/RuntimeService.cpp#532 ; see https://phabricator.services.mozilla.com/D263688?id=1123549#inline-1454737 for discussion about how to handle this case.
Other cases handled by [NeedsSubjectPrincipal=NonSystem] but not tested:
- ServiceWorkerContainer.register
- WindowOrWorkerGlobalScope.setTimeout / setInterval
- WorkerGlobalScope.importScripts
Other cases where we can't use [NeedsSubjectPrincipal=NonSystem]:
- SharedWorker/Worker constructors (bug 1963277)
| Reporter | ||
Comment 3•10 months ago
|
||
Comment 4•10 months ago
|
||
Comment on attachment 9517090 [details]
WIP: Bug 1990732 - Add worker tests in test_ext_contentscript_trustedtypes.js
Revision D266758 was moved to bug 1991623. Setting attachment 9517090 [details] to obsolete.
Description
•