Closed Bug 1489123 Opened 6 years ago Closed 5 years ago

[wpt-sync] Sync PR 12872 - Tests from https://github.com/WICG/trusted-types/tree/master/tests ported to WPT

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

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

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

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

Maja Kabus <kabusm@google.com> wrote:
>  Tests from https://github.com/WICG/trusted-types/tree/master/tests ported to WPT
>  
>  enforcer_test.js ported to WPT and divided into
>  TrustedTypesEnforcer-*.tentative.html files.
>  
>  trustedtypeconfig_test.js ported to WPT and divided into
>  TrustedTypeConfig-*.tentative.html files.
>  
>  trustedtypes_test.js ported to WPT and divided into
>  TrustedTypes-*.tentative.html files.
>  
>  [Some tests fail, e.g. they work with strings instead of TrustedXXX
>  or they perhaps test features that are not yet implemented]
>  
>  [I marked with TODO the parts that are not truly ported as it might
>  not be possible]
>  
>  [TrustedScript is sometimes tested, sometimes not - I think this
>  could be tested everywhere now, where other TrustedXXX are tested]
>  
>  Bug: 739170
>  Change-Id: I56563c16facd7c17d79e7b5625115a0f045618f8
>  Reviewed-on: https://chromium-review.googlesource.com/1209708
>  WPT-Export-Revision: f3db436d241d4f9aa4868ec59feaa93e27e336be
Component: web-platform-tests → DOM: Security
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
PR 12872 applied with additional changes from upstream: 1de1550e95396f979da97620a289c213acaf55e2, ef04d8b0f2e9a65ef82b33e03978ec0b34ec8c29
Whiteboard: [wptsync downstream][domsecurity-backlog] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Whiteboard: [wptsync downstream][domsecurity-backlog] → [wptsync downstream error][domsecurity-backlog]
PR 12872 applied with additional changes from upstream: 290b849c576ec3f2c13a78d05b2210b3655f4964
Whiteboard: [wptsync downstream error][domsecurity-backlog] → [wptsync downstream][domsecurity-backlog]
Ran 42 tests and 201 subtests
OK     : 35
PASS   : 11
FAIL   : 190
ERROR  : 7

New tests that have failures or other problems:
/trusted-types/GlobalEventHandlers-onclick.tentative.html
    a.onclick assigned via policy (successful Script transformation).: FAIL
/trusted-types/TrustedTypePolicy-CSP-wildcard.tentative.html
    CSP supports wildcards.: FAIL
/trusted-types/TrustedTypePolicy-CSP.tentative.html
    Another whitelisted policy creation works.: FAIL
    Whitelisted policy creation works.: FAIL
/trusted-types/TrustedTypePolicy-createXXX.tentative.html: ERROR
    Attributes without type constraints will work as before.: FAIL
    TrustedTypes.createPolicy(.., null) creates empty policy.: FAIL
    calling undefined callbacks throws: FAIL
/trusted-types/TrustedTypePolicy-exposed.tentative.html
    Null is returned when policy is non-existent.: FAIL
    Null is returned when policy is not exposed - by default: FAIL
    Policy is returned when exposed == true.: FAIL
/trusted-types/TrustedTypePolicy-name.tentative.html
    duplicate policy name attempt throws: FAIL
    getPolicyNames returns all policy names: FAIL
    policy.name = name: FAIL
/trusted-types/TrustedTypePolicyFactory-createPolicy-cspTests.tentative.html
    Another whitelisted policy creation works.: FAIL
    Whitelisted policy creation works.: FAIL
/trusted-types/TrustedTypePolicyFactory-createPolicy-exposedTests.tentative.html
    Null is returned when policy is non-existent.: FAIL
    Null is returned when policy is not exposed - by default: FAIL
    Policy is returned when exposed == true.: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4b6edf8b08ba
[wpt PR 12872] - [Trusted Types] Tests from WICG GitHub ported to WPT, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/e4b879730a2a
[wpt PR 12872] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/4b6edf8b08ba
https://hg.mozilla.org/mozilla-central/rev/e4b879730a2a
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.