Bug 1921008: part 4) Remove checking trusted-types as effective directive in <trusted-types-navigation.html>. r=tschuster

It was confusing.

Differential Revision: https://phabricator.services.mozilla.com/D223753
This commit is contained in:
Mirko Brodesser 2024-10-14 07:58:47 +00:00
parent 58e7ffb45b
commit b463000704

View File

@ -20,8 +20,7 @@
function expectViolationAsMessage(sample) {
const filter = e => {
const result = ((e.data.effectiveDirective == "require-trusted-types-for" ||
e.data.effectiveDirective == "trusted-types") &&
const result = (e.data.effectiveDirective == "require-trusted-types-for" &&
(!sample || e.data.sample.startsWith(sample)));
if (result) {
assert_true(true, "Expected violation as message: " + sample);