Implement Trusted Types support for Window's setInterval()/setTimeout()
Categories
(Core :: DOM: Security, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox135 | --- | fixed |
People
(Reporter: fredw, Assigned: fredw)
References
Details
(Whiteboard: [domsecurity-backlog])
Attachments
(2 files)
Spec:
https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope-mixin:tt-trustedscript
https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope-mixin:timerhandler
https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope-mixin:timerhandler-2
https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers
Tests:
trusted-types/DOMWindowTimers-setTimeout-setInterval.html
block-string-assignment-to-DOMWindowTimers-setTimeout-setInterval.html
| Assignee | ||
Comment 1•11 months ago
|
||
| Assignee | ||
Comment 2•11 months ago
|
||
| Assignee | ||
Comment 3•11 months ago
|
||
Let's only handle the Window case here. I'll open a separate bug for WorkerGlobalScope
| Assignee | ||
Updated•11 months ago
|
| Assignee | ||
Comment 4•11 months ago
|
||
Just putting here for the record:
https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers contains the step
- Perform EnsureCSPDoesNotBlockStringCompilation(realm, « », handler, handler, timer, « », handler). If this throws an exception, catch it, report it for global, and abort these steps.
and https://w3c.github.io/webappsec-csp/#can-compile-strings does not perform any trusted check for TIMER, so we don't need the extra changes for EnsureCSPDoesNotBlockStringCompilation mentioned in bug 1931288 comment 2.
| Assignee | ||
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Comment 6•11 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d5a35d40760b
https://hg.mozilla.org/mozilla-central/rev/7f2360c92457
Description
•