mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
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:
parent
58e7ffb45b
commit
b463000704
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user