Bug 1875244 - Enable ESlint rules no-unused-vars and no-undef for dom/xslt. r=peterv

Differential Revision: https://phabricator.services.mozilla.com/D198936
This commit is contained in:
Mark Banner 2024-01-29 18:23:53 +00:00
parent cd561394de
commit 0b91be9f19
3 changed files with 2 additions and 2 deletions

View File

@ -514,7 +514,6 @@ module.exports = {
"dom/websocket/tests/**",
"dom/workers/test/**",
"dom/worklet/tests/**",
"dom/xslt/tests/**",
],
rules: {
"no-undef": "off",

View File

@ -1,3 +1,4 @@
/* global fail */
fail(
"documents sandboxed without allow-scripts should NOT be able to run <script src=...>"
);

View File

@ -14,7 +14,7 @@
let failed = JSON.parse(frame.contentDocument.title);
ok(failed instanceof Array, "Frame's title is expected to be a JSON representation of the array of failed conditions.");
is(failed.length, 0, "No scripts should run in sandboxed iframe document created by XSLT.");
for (desc of failed) {
for (let desc of failed) {
info(desc);
}
resolve();