Skip to content

Commit

Permalink
Remove incorrect TT subtest for SVGScriptElement text (web-platform-t…
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewarlow authored Feb 3, 2025
1 parent 4587221 commit 1272914
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions trusted-types/trusted-types-reporting.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,6 @@
assert_equals(violation.sample, `SVGScriptElement href|${clipSampleIfNeeded(input)}`);
}, "Trusted Type violation report: sample for SVGScriptElement href assignment by setAttribute");

promise_test(async t => {
const input = "2+3";
let violation = await trusted_type_violation_for(TypeError, _ =>
document.getElementById("svgscript").insertBefore(document.createTextNode(input), null)
);
assert_true(violation.originalPolicy.includes("require-trusted-types-for 'script'"));
assert_equals(violation.blockedURI, "trusted-types-sink");
assert_equals(violation.sample, `SVGScriptElement text|${clipSampleIfNeeded(input)}`);
}, "Trusted Type violation report: sample for SVGScriptElement text assignment");

promise_test(async t => {
const input = "2+2";
let violation = await trusted_type_violation_for(EvalError, _ =>
Expand Down

0 comments on commit 1272914

Please sign in to comment.