Bug 1786094 - Enable ESlint rule no-unused-vars on the global scope for dom/security xpcshell-tests. r=ckerschb

Differential Revision: https://phabricator.services.mozilla.com/D155118
This commit is contained in:
Mark Banner 2022-08-23 21:10:13 +00:00
parent 7bbe5c251c
commit d05ce3e6d1
4 changed files with 5 additions and 19 deletions

View File

@ -189,7 +189,11 @@ module.exports = {
// These are more complicated bugs which may require some in-depth // These are more complicated bugs which may require some in-depth
// investigation or different solutions. They are also likely to be // investigation or different solutions. They are also likely to be
// a reasonable size. // a reasonable size.
"dom/**", "dom/base/**",
"dom/cache/**",
"dom/indexedDB/**",
"dom/localstorage/**",
"dom/tests/**",
], ],
rules: { rules: {
// No declaring variables that are never used // No declaring variables that are never used

View File

@ -13,7 +13,6 @@ var principal;
const REPORT_SERVER_PORT = httpServer.identity.primaryPort; const REPORT_SERVER_PORT = httpServer.identity.primaryPort;
const REPORT_SERVER_URI = "http://localhost"; const REPORT_SERVER_URI = "http://localhost";
const REPORT_SERVER_PATH = "/report";
/** /**
* Construct a callback that listens to a report submission and either passes * Construct a callback that listens to a report submission and either passes

View File

@ -1,12 +1,5 @@
const { HttpServer } = ChromeUtils.import("resource://testing-common/httpd.js"); const { HttpServer } = ChromeUtils.import("resource://testing-common/httpd.js");
const { NetUtil } = ChromeUtils.import("resource://gre/modules/NetUtil.jsm"); const { NetUtil } = ChromeUtils.import("resource://gre/modules/NetUtil.jsm");
const { XPCOMUtils } = ChromeUtils.importESModule(
"resource://gre/modules/XPCOMUtils.sys.mjs"
);
XPCOMUtils.defineLazyGetter(this, "HTTP_TEST_URL", function() {
return "http://test1.example.com";
});
const TEST_PATH = "/https_only_https_first_port"; const TEST_PATH = "/https_only_https_first_port";
var httpserver = null; var httpserver = null;

View File

@ -7,16 +7,6 @@
*/ */
const { NetUtil } = ChromeUtils.import("resource://gre/modules/NetUtil.jsm"); const { NetUtil } = ChromeUtils.import("resource://gre/modules/NetUtil.jsm");
const { XPCOMUtils } = ChromeUtils.importESModule(
"resource://gre/modules/XPCOMUtils.sys.mjs"
);
XPCOMUtils.defineLazyServiceGetter(
this,
"gContentSecurityManager",
"@mozilla.org/contentsecuritymanager;1",
"nsIContentSecurityManager"
);
Services.prefs.setCharPref( Services.prefs.setCharPref(
"dom.securecontext.allowlist", "dom.securecontext.allowlist",