Closed Bug 1518567 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 14751 - Allow only correct Trusted Type in setAttribute

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

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

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

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

Jakub Vrana <jakubvrana@google.com> wrote:

Allow only correct Trusted Type in setAttribute

This now matches the behavior of assigning properties. The correct
Trusted Type is allowed, incorrect Trusted Type is converted to string
and then treated as string.

Bug: 919121, 739170
Change-Id: I400915f3c3d960f99f13b4e6894a61a9334e78b1
Reviewed-on: https://chromium-review.googlesource.com/1400668
WPT-Export-Revision: 3e0e3003af62bdc0b6a7f20a07ba1a72b2157fc7

Component: web-platform-tests → DOM: Security
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Ran 1 tests and 1 subtests
OK     : 1
FAIL   : 1

New tests that have failures or other problems:
/trusted-types/block-string-assignment-to-Element-setAttribute.tentative.html
    block-string-assignment-to-Element-setAttribute: FAIL
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c23653cd95b6
[wpt PR 14751] - Allow only correct Trusted Type in setAttribute, a=testonly
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4d5605bb86c7
[wpt PR 14751] - Allow only correct Trusted Type in setAttribute, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.