Closed Bug 1476542 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 12049 - Window, LocalDomWindow and Document open() functions modified to accept TrustedTypes

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

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

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

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

Maja Kabus <kabusm@google.com> wrote:
>  Window, LocalDomWindow and Document open() functions modified to accept TrustedTypes
>  
>  Changed open() definitions in .idl files.
>  Introduced new implementations of LocalDomWindow::open(), old versions
>  renamed openFromString and moved to private section.
>  Changed definition of 3-argument version of Document::open.
>  
>  Bug: 739170
>  Change-Id: I64931c5e95eaa9dd2d2aab19ccb0bf8896621e7d
>  Reviewed-on: https://chromium-review.googlesource.com/1141581
>  WPT-Export-Revision: 4c77bf7f269d42361d734c1eb5935a5bcd1c837f
Component: web-platform-tests → DOM: Security
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Whiteboard: [wptsync downstream][domsecurity-backlog] → [wptsync downstream]
Ran 2 tests and 12 subtests
OK     : 2
FAIL   : 12

New tests that have failures or other problems:
/trusted-types/block-string-assignment-to-window-open.tentative.html
    `document.open(null)` throws.: FAIL
    `document.open(string)` throws.: FAIL
    `window.open(null)` throws.: FAIL
    `window.open(string)` throws.: FAIL
    document.open: safe URL, safe construction.: FAIL
    document.open: safe URL, unsafe construction.: FAIL
    window.open: safe URL, safe construction.: FAIL
    window.open: safe URL, unsafe construction.: FAIL
/trusted-types/window-open.tentative.html
    document.open: safe URL, safe construction.: FAIL
    document.open: safe URL, unsafe construction.: FAIL
    window.open: safe URL, safe construction.: FAIL
    window.open: safe URL, unsafe construction.: FAIL
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d149bc19f810
[wpt PR 12049] - Window, LocalDomWindow and Document open() functions modified to accept TrustedTypes, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/88d76bcef140
[wpt PR 12049] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/d149bc19f810
https://hg.mozilla.org/mozilla-central/rev/88d76bcef140
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.