Bug 1312486 - Enable no-extra-boolean-cast, no-new-object, no-shadow-restricted-names, and spaced-comment rules for eslint. r=standard8

MozReview-Commit-ID: 7Gx90a5y8t6
This commit is contained in:
Jared Wein
2016-10-24 13:14:19 -04:00
parent 2c8214052e
commit 0c024fa9ca
325 changed files with 1261 additions and 1285 deletions

View File

@@ -209,18 +209,18 @@ function openWindow(parent, url, target, features, args, noExternalArgs) {
sstring.data = uri;
uriArray.appendElement(sstring, /* weak = */ false);
});
argArray.appendElement(uriArray, /*weak =*/ false);
argArray.appendElement(uriArray, /* weak =*/ false);
} else {
argArray.appendElement(null, /*weak =*/ false);
argArray.appendElement(null, /* weak =*/ false);
}
// Pass these as null to ensure that we always trigger the "single URL"
// behavior in browser.js's gBrowserInit.onLoad (which handles the window
// arguments)
argArray.appendElement(null, /*weak =*/ false); // charset
argArray.appendElement(null, /*weak =*/ false); // referer
argArray.appendElement(null, /*weak =*/ false); // postData
argArray.appendElement(null, /*weak =*/ false); // allowThirdPartyFixup
argArray.appendElement(null, /* weak =*/ false); // charset
argArray.appendElement(null, /* weak =*/ false); // referer
argArray.appendElement(null, /* weak =*/ false); // postData
argArray.appendElement(null, /* weak =*/ false); // allowThirdPartyFixup
return Services.ww.openWindow(parent, url, target, features, argArray);
}
@@ -233,7 +233,7 @@ function openPreferences() {
.createInstance(Components.interfaces.nsISupportsString);
wuri.data = "about:preferences";
args.appendElement(wuri, /*weak =*/ false);
args.appendElement(wuri, /* weak = */ false);
Services.ww.openWindow(null, gBrowserContentHandler.chromeURL,
"_blank",
@@ -261,10 +261,10 @@ function doSearch(searchTerm, cmdLine) {
.createInstance(Components.interfaces.nsISupportsString);
wuri.data = submission.uri.spec;
args.appendElement(wuri, /*weak =*/ false);
args.appendElement(null, /*weak =*/ false);
args.appendElement(null, /*weak =*/ false);
args.appendElement(submission.postData, /*weak =*/ false);
args.appendElement(wuri, /* weak =*/ false);
args.appendElement(null, /* weak =*/ false);
args.appendElement(null, /* weak =*/ false);
args.appendElement(submission.postData, /* weak =*/ false);
// XXXbsmedberg: use handURIToExistingBrowser to obey tabbed-browsing
// preferences, but need nsIBrowserDOMWindow extensions