Closed Bug 1510417 Opened Last year Closed Last year

[wpt-sync] Sync PR 14261 - [Trusted Types] Prevent mutation of Trusted Types built-ins.

Categories

(Core :: DOM: Core & HTML, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: wptsync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Daniel Vogelheim <vogelheim@chromium.org> wrote:
>  [Trusted Types] Prevent mutation of Trusted Types built-ins.
>  
>  Bug: 739170
>  Change-Id: Iafeabd00f6dde0c1ecf055a5f9f006059e43c9f7
>  Reviewed-on: https://chromium-review.googlesource.com/1346449
>  WPT-Export-Revision: 8ea3e2c97ad2155fee2a5b73bb58db19551445d5
Component: web-platform-tests → DOM
Product: Testing → Core
Ran 2 tests and 77 subtests
OK     : 2
PASS   : 1
FAIL   : 76

New tests that have failures or other problems:
/trusted-types/TrustedTypePolicyFactory-isXXX.tentative.html
    TrustedTypePolicyFactory.IsHTML cannot be redefined via defineProperty.: FAIL
    TrustedTypePolicyFactory.IsHTML cannot be redefined.: FAIL
    TrustedTypePolicyFactory.isScript cannot be redefined via definePropert.: FAIL
    TrustedTypePolicyFactory.isScript cannot be redefined.: FAIL
    TrustedTypePolicyFactory.isScriptURL cannot be redefined via definePropert.: FAIL
    TrustedTypePolicyFactory.isScriptURL cannot be redefined.: FAIL
    TrustedTypePolicyFactory.isURL cannot be redefined via definePropert.: FAIL
    TrustedTypePolicyFactory.isURL cannot be redefined.: FAIL
/trusted-types/idlharness.window.html
    TrustedTypePolicy interface: window.TrustedTypes.createPolicy("SomeName", { createHTML: s => s }) must have own property "createHTML": FAIL
    TrustedTypePolicy interface: window.TrustedTypes.createPolicy("SomeName", { createHTML: s => s }) must have own property "createScript": FAIL
    TrustedTypePolicy interface: window.TrustedTypes.createPolicy("SomeName", { createHTML: s => s }) must have own property "createScriptURL": FAIL
    TrustedTypePolicy interface: window.TrustedTypes.createPolicy("SomeName", { createHTML: s => s }) must have own property "createURL": FAIL
    TrustedTypePolicy interface: window.TrustedTypes.createPolicy("SomeName", { createHTML: s => s }) must have own property "name": FAIL
    TrustedTypePolicyFactory interface: window.TrustedTypes must have own property "createPolicy": FAIL
    TrustedTypePolicyFactory interface: window.TrustedTypes must have own property "getPolicyNames": FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/55d7a32adf3e
[wpt PR 14261] - [Trusted Types] Prevent mutation of Trusted Types built-ins., a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/7c40a661e06a
[wpt PR 14261] - Update wpt metadata, a=testonly
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/cfe4431904b3
[wpt PR 14261] - [Trusted Types] Prevent mutation of Trusted Types built-ins., a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/f9c9a65c9e72
[wpt PR 14261] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/cfe4431904b3
https://hg.mozilla.org/mozilla-central/rev/f9c9a65c9e72
Status: NEW → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.