Fail | Block Trusted Type policy creation by event listener. | assert_throws_dom: function "() => trustedTypes.createPolicy("default", {})" did not throw at Test.<anonymous> (https://www1.wpt.live/trusted-types/TrustedTypePolicyFactory-blocking.tentative.html:16:5)
at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
at test (https://www1.wpt.live/resources/testharness.js:633:30)
at https://www1.wpt.live/trusted-types/TrustedTypePolicyFactory-blocking.tentative.html:10:3 Asserts runFail | assert_throws_dom("NotAllowedError", function "() => trustedTypes.createPolicy("default", {})")
at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-blocking.tentative.html:16:5) |
|
Fail | Trusted Type policy creation. | assert_equals: expected true but got false at Test.<anonymous> (https://www1.wpt.live/trusted-types/TrustedTypePolicyFactory-blocking.tentative.html:27:5)
at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
at test (https://www1.wpt.live/resources/testharness.js:633:30)
at https://www1.wpt.live/trusted-types/TrustedTypePolicyFactory-blocking.tentative.html:19:3 Asserts runFail | assert_equals(false, true)
at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-blocking.tentative.html:27:5) |
|
Fail | Block only default Trusted Type policy creation. | assert_throws_dom: function "() => trustedTypes.createPolicy("default", {})" threw object "TypeError: Failed to execute 'createPolicy' on 'TrustedTypePolicyFactory': Policy with name "default" already exists." that is not a DOMException NotAllowedError: property "code" is equal to undefined, expected 0 at Test.<anonymous> (https://www1.wpt.live/trusted-types/TrustedTypePolicyFactory-blocking.tentative.html:36:5)
at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
at test (https://www1.wpt.live/resources/testharness.js:633:30)
at https://www1.wpt.live/trusted-types/TrustedTypePolicyFactory-blocking.tentative.html:30:3 Asserts runFail | assert_throws_dom("NotAllowedError", function "() => trustedTypes.createPolicy("default", {})")
at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-blocking.tentative.html:36:5) |
|
Pass | Policy creation called before addEventListener function will not reached the listener. | Asserts runNo asserts ran |