Pass | window.trustedTypes.createPolicy() in a sandboxed page with allow-scripts. | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "_ => { window.trustedTypes.createPolicy("ForbiddenPolicyName", { createHTML: x => x}); }")
at Test.<anonymous> ( /trusted-types/trusted-types-sandbox-allow-scripts.html:9:5) | Pass | assert_equals("AllowedPolicyName", "AllowedPolicyName")
at Test.<anonymous> ( /trusted-types/trusted-types-sandbox-allow-scripts.html:15:5) | Pass | assert_equals("[Hello World!]", "[Hello World!]")
at Test.<anonymous> ( /trusted-types/trusted-types-sandbox-allow-scripts.html:16:5) |
|