diff --git a/toolkit/components/satchel/.eslintrc.js b/toolkit/components/satchel/.eslintrc.js index 856df522f3f8..c62c0e5e1bc8 100644 --- a/toolkit/components/satchel/.eslintrc.js +++ b/toolkit/components/satchel/.eslintrc.js @@ -40,5 +40,6 @@ module.exports = { complexity: ["error", { max: 20, }], + "dot-location": ["error", "property"], }, }; diff --git a/toolkit/components/satchel/FormHistory.jsm b/toolkit/components/satchel/FormHistory.jsm index c8e80180ee0a..873cd6d74910 100644 --- a/toolkit/components/satchel/FormHistory.jsm +++ b/toolkit/components/satchel/FormHistory.jsm @@ -130,13 +130,13 @@ function log(aMessage) { function sendNotification(aType, aData) { if (typeof aData == "string") { - let strWrapper = Cc["@mozilla.org/supports-string;1"]. - createInstance(Ci.nsISupportsString); + let strWrapper = Cc["@mozilla.org/supports-string;1"] + .createInstance(Ci.nsISupportsString); strWrapper.data = aData; aData = strWrapper; } else if (typeof aData == "number") { - let intWrapper = Cc["@mozilla.org/supports-PRInt64;1"]. - createInstance(Ci.nsISupportsPRInt64); + let intWrapper = Cc["@mozilla.org/supports-PRInt64;1"] + .createInstance(Ci.nsISupportsPRInt64); intWrapper.data = aData; aData = intWrapper; } else if (aData) { diff --git a/toolkit/components/satchel/FormHistoryStartup.js b/toolkit/components/satchel/FormHistoryStartup.js index b19a649f55c4..fded23d76ec6 100644 --- a/toolkit/components/satchel/FormHistoryStartup.js +++ b/toolkit/components/satchel/FormHistoryStartup.js @@ -58,8 +58,8 @@ FormHistoryStartup.prototype = { Services.ppmm.loadProcessScript("chrome://satchel/content/formSubmitListener.js", true); Services.ppmm.addMessageListener("FormHistory:FormSubmitEntries", this); - let messageManager = Cc["@mozilla.org/globalmessagemanager;1"]. - getService(Ci.nsIMessageListenerManager); + let messageManager = Cc["@mozilla.org/globalmessagemanager;1"] + .getService(Ci.nsIMessageListenerManager); // For each of these messages, we could receive them from content, // or we might receive them from the ppmm if the searchbar is // having its history queried. diff --git a/toolkit/components/satchel/test/parent_utils.js b/toolkit/components/satchel/test/parent_utils.js index 13120164fbb1..84d9e2325ef6 100644 --- a/toolkit/components/satchel/test/parent_utils.js +++ b/toolkit/components/satchel/test/parent_utils.js @@ -8,9 +8,9 @@ Cu.import("resource://gre/modules/FormHistory.jsm"); Cu.import("resource://gre/modules/Services.jsm"); Cu.import("resource://testing-common/ContentTaskUtils.jsm"); -var gAutocompletePopup = Services.ww.activeWindow. - document. - getElementById("PopupAutoComplete"); +var gAutocompletePopup = Services.ww.activeWindow + .document + .getElementById("PopupAutoComplete"); assert.ok(gAutocompletePopup, "Got autocomplete popup"); var ParentUtils = { diff --git a/toolkit/components/satchel/test/unit/head_satchel.js b/toolkit/components/satchel/test/unit/head_satchel.js index d0e7e2b057d5..555b9a53b716 100644 --- a/toolkit/components/satchel/test/unit/head_satchel.js +++ b/toolkit/components/satchel/test/unit/head_satchel.js @@ -17,13 +17,13 @@ var dirSvc = Cc["@mozilla.org/file/directory_service;1"] // Send the profile-after-change notification to the form history component to ensure // that it has been initialized. -var formHistoryStartup = Cc["@mozilla.org/satchel/form-history-startup;1"]. - getService(Ci.nsIObserver); +var formHistoryStartup = Cc["@mozilla.org/satchel/form-history-startup;1"] + .getService(Ci.nsIObserver); formHistoryStartup.observe(null, "profile-after-change", null); function getDBVersion(dbfile) { - var ss = Cc["@mozilla.org/storage/service;1"]. - getService(Ci.mozIStorageService); + var ss = Cc["@mozilla.org/storage/service;1"] + .getService(Ci.mozIStorageService); var dbConnection = ss.openDatabase(dbfile); var version = dbConnection.schemaVersion; dbConnection.close(); diff --git a/toolkit/components/satchel/test/unit/test_notify.js b/toolkit/components/satchel/test/unit/test_notify.js index 3e18670926ba..756d0fa4d863 100644 --- a/toolkit/components/satchel/test/unit/test_notify.js +++ b/toolkit/components/satchel/test/unit/test_notify.js @@ -63,8 +63,7 @@ function* run_test_steps() { }); // Add the observer - var os = Cc["@mozilla.org/observer-service;1"]. - getService(Ci.nsIObserverService); + var os = Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService); os.addObserver(TestObserver, "satchel-storage-changed"); /* ========== 2 ========== */ diff --git a/toolkit/components/satchel/test/unit/test_previous_result.js b/toolkit/components/satchel/test/unit/test_previous_result.js index dc7bcfa0d78c..01621bcbd346 100644 --- a/toolkit/components/satchel/test/unit/test_previous_result.js +++ b/toolkit/components/satchel/test/unit/test_previous_result.js @@ -18,7 +18,7 @@ var aaListener = { function run_test() { do_test_pending(); - let search = Cc["@mozilla.org/autocomplete/search;1?name=form-history"]. - getService(Ci.nsIAutoCompleteSearch); + let search = Cc["@mozilla.org/autocomplete/search;1?name=form-history"] + .getService(Ci.nsIAutoCompleteSearch); search.startSearch("aa", "", null, aaListener); }