Trusted Type: Improve WPT test coverage for script enforcements
Categories
(Core :: DOM: Security, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox141 | --- | fixed |
People
(Reporter: fwang, Assigned: fwang)
References
Details
Attachments
(3 files)
| Assignee | ||
Comment 1•11 months ago
|
||
| Assignee | ||
Comment 2•11 months ago
|
||
I just uploaded more tests for script enforcement: https://phabricator.services.mozilla.com/D251094
- WebKit passes all of them except the ones for Node.moveBefore() (not implemented yet)
- Chromium passes all the tests, except the ones were it currently implements Trusted checks not defined in the spec (Node.prepend() etc)
This should cover many cases detected in the WIP patch for bug 1928932.
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
| Assignee | ||
Comment 3•11 months ago
|
||
This verifies that the source text transformed by the default policy is used
for various steps of "prepare the script element":
https://html.spec.whatwg.org/#prepare-the-script-element
PR https://github.com/w3c/trusted-types/pull/579
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
| Assignee | ||
Comment 4•11 months ago
|
||
This verifies sink mismatch violation report for script enforcement
rules. When a default policy is specified, this is reported as a
script-src-elem violation and the script's text source is actually
not reported to the user.
Comment 7•11 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5966d24c9bcd
https://hg.mozilla.org/mozilla-central/rev/b40ba3e6cd66
https://hg.mozilla.org/mozilla-central/rev/06d9162cd877
Updated•10 months ago
|
Description
•