Closed Bug 1601575 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 20630 - [Trusted Types] Support 'allow-duplicates' in trusted-types directive.

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

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

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

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

Daniel Vogelheim <vogelheim@chromium.org> wrote:

[Trusted Types] Support 'allow-duplicates' in trusted-types directive.

Implements 'allow-duplicates' according to
https://github.com/w3c/webappsec-trusted-types/pull/245

Also updates policy name checking to follow the spec.

Bug: 1030259
Change-Id: I74a1a12d5e36b642cfbcf2517a6ee8f0d7f000e7
Reviewed-on: https://chromium-review.googlesource.com/1950529
WPT-Export-Revision: 89412b4543afd3d940e15eaeb18a084459ff81f7

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

CI Results

Ran 13 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 3 tests and 1 subtests

Status Summary

Firefox

OK : 2
FAIL : 14
ERROR: 1

Chrome

OK : 3
PASS : 20
FAIL : 10

Safari

OK : 2
FAIL : 14
ERROR: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/trusted-types/trusted-types-createHTMLDocument.tentative.html
Trusted Type assignment is blocked. (DOMParser): FAIL (Chrome: PASS, Safari: FAIL)
Default policy applies. (XHR): FAIL (Chrome: FAIL, Safari: FAIL)
Trusted Type assignment is blocked. (createHTMLDocument): FAIL (Chrome: PASS, Safari: FAIL)
Trusted Type instances created in the main doc can be used. (XHR): FAIL (Chrome: FAIL, Safari: FAIL)
Default policy applies. (document): FAIL (Chrome: FAIL, Safari: FAIL)
Install default policy.: FAIL (Chrome: FAIL, Safari: FAIL)
Trusted Type instances created in the main doc can be used. (document): FAIL (Chrome: FAIL, Safari: FAIL)
Trusted Type assignment is blocked. (XHR): FAIL (Chrome: PASS, Safari: FAIL)
Trusted Type assignment is blocked. (document): FAIL (Chrome: PASS, Safari: FAIL)
Default policy applies. (DOMParser): FAIL (Chrome: FAIL, Safari: FAIL)
Trusted Type instances created in the main doc can be used. (DOMParser): FAIL (Chrome: FAIL, Safari: FAIL)
Default policy applies. (createHTMLDocument): FAIL (Chrome: FAIL, Safari: FAIL)
Trusted Type instances created in the main doc can be used. (createHTMLDocument): FAIL (Chrome: FAIL, Safari: FAIL)
/trusted-types/block-string-assignment-to-Element-setAttribute.tentative.html: ERROR (Chrome: OK, Safari: ERROR)
/trusted-types/trusted-types-duplicate-names.tentative.html
policy - duplicate names: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d6e5a8b7e148
[wpt PR 20630] - [Trusted Types] Support 'allow-duplicates' in trusted-types directive., a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
You need to log in before you can comment on or make changes to this bug.