Closed Bug 1592563 Opened 5 years ago Closed 4 years ago

[wpt-sync] Sync PR 19992 - [Trusted Types] Obey TT in createHTMLDocument-create documents.

Categories

(Core :: DOM: Security, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream][domsecurity-backlog])

Sync web-platform-tests PR 19992 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/19992
Details from upstream follow.

Daniel Vogelheim <vogelheim@chromium.org> wrote:

[Trusted Types] Obey TT in createHTMLDocument-create documents.

This will pass on the Trusted Type enforcement requirement set by the CSP
header, but will not actually instantiate a TrustedTypePolicyFactory. That
plugs the current hole; but might not be an acceptable long-term solution.

Bug: 951536
Change-Id: I56d541d57184396ce1dacdac9236d9259189f621
Reviewed-on: https://chromium-review.googlesource.com/1886826
WPT-Export-Revision: 9a153cfcab5da15ea1745c8de74c4ce432a36285

Component: web-platform-tests → DOM: Security
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]

GitHub CI Results

wpt.fyi PR Results Base Results

Ran 1 tests and 2 subtests

Firefox

OK : 1
FAIL: 2

Chrome

OK : 1
FAIL: 2

Safari

OK : 1
FAIL: 2

New tests that's don't pass

/trusted-types/trusted-types-createHTMLDocument.tentative.html
Trusted Types work in createHTMLDocument: Firefox: FAIL, Chrome: FAIL, Safari: FAIL
Trusted Type instances can be used in createHTMLDocument: Firefox: FAIL, Chrome: FAIL, Safari: FAIL

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a560dea4b5c8
[wpt PR 19992] - [Trusted Types] Obey TT in createHTMLDocument-created documents., a=testonly
https://hg.mozilla.org/integration/autoland/rev/f7b464619671
[wpt PR 19992] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.