mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 06:09:19 +00:00
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:
parent
cd561394de
commit
0b91be9f19
@ -514,7 +514,6 @@ module.exports = {
|
||||
"dom/websocket/tests/**",
|
||||
"dom/workers/test/**",
|
||||
"dom/worklet/tests/**",
|
||||
"dom/xslt/tests/**",
|
||||
],
|
||||
rules: {
|
||||
"no-undef": "off",
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* global fail */
|
||||
fail(
|
||||
"documents sandboxed without allow-scripts should NOT be able to run <script src=...>"
|
||||
);
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user