diff options
Diffstat (limited to 'browser/components/search/content')
-rw-r--r-- | browser/components/search/content/autocomplete-popup.js | 6 | ||||
-rw-r--r-- | browser/components/search/content/contentSearchUI.js | 4 | ||||
-rw-r--r-- | browser/components/search/content/searchbar.js | 18 |
3 files changed, 14 insertions, 14 deletions
diff --git a/browser/components/search/content/autocomplete-popup.js b/browser/components/search/content/autocomplete-popup.js index 2c84bf8cd7..c5a33348ff 100644 --- a/browser/components/search/content/autocomplete-popup.js +++ b/browser/components/search/content/autocomplete-popup.js @@ -18,7 +18,7 @@ constructor() { super(); - this.addEventListener("popupshowing", event => { + this.addEventListener("popupshowing", () => { // First handle deciding if we are showing the reduced version of the // popup containing only the preferences button. We do this if the // glass icon has been clicked if the text field is empty. @@ -47,7 +47,7 @@ ); }); - this.addEventListener("popuphiding", event => { + this.addEventListener("popuphiding", () => { this._oneOffButtons.removeEventListener( "SelectedOneOffButtonChanged", this @@ -232,7 +232,7 @@ } } - let uri = engine.getIconURL(); + let uri = await engine.getIconURL(); if (uri) { this.setAttribute("src", uri); } else { diff --git a/browser/components/search/content/contentSearchUI.js b/browser/components/search/content/contentSearchUI.js index 9c7387d364..f3e54db1f3 100644 --- a/browser/components/search/content/contentSearchUI.js +++ b/browser/components/search/content/contentSearchUI.js @@ -557,11 +557,11 @@ this.ContentSearchUIController = (function () { } }, - _onMsgFocusInput(event) { + _onMsgFocusInput() { this.input.focus(); }, - _onMsgBlur(event) { + _onMsgBlur() { this.input.blur(); this._hideSuggestions(); }, diff --git a/browser/components/search/content/searchbar.js b/browser/components/search/content/searchbar.js index 986a1b4d82..c872236472 100644 --- a/browser/components/search/content/searchbar.js +++ b/browser/components/search/content/searchbar.js @@ -53,7 +53,7 @@ this._setupEventListeners(); let searchbar = this; this.observer = { - observe(aEngine, aTopic, aVerb) { + observe(aEngine, aTopic) { if (aTopic == "browser-search-engine-modified") { // Make sure the engine list is refetched next time it's needed searchbar._engines = null; @@ -115,7 +115,7 @@ window.requestIdleCallback(() => { Services.search .init() - .then(aStatus => { + .then(() => { // Bail out if the binding's been destroyed if (!this._initialized) { return; @@ -470,7 +470,7 @@ } _setupEventListeners() { - this.addEventListener("click", event => { + this.addEventListener("click", () => { this._maybeSelectAll(); }); @@ -484,17 +484,17 @@ true ); - this.addEventListener("input", event => { + this.addEventListener("input", () => { this.updateGoButtonVisibility(); }); - this.addEventListener("drop", event => { + this.addEventListener("drop", () => { this.updateGoButtonVisibility(); }); this.addEventListener( "blur", - event => { + () => { // Reset the flag since we can't capture enter keyup event if the event happens // after moving the focus. this._needBrowserFocusAtEnterKeyUp = false; @@ -508,7 +508,7 @@ this.addEventListener( "focus", - event => { + () => { // Speculatively connect to the current engine's search URI (and // suggest URI, if different) to reduce request latency this.currentEngine.speculativeConnect({ @@ -576,7 +576,7 @@ } _setupTextboxEventListeners() { - this.textbox.addEventListener("input", event => { + this.textbox.addEventListener("input", () => { this.textbox.popup.removeAttribute("showonlysettings"); }); @@ -826,7 +826,7 @@ } }; - this.textbox.onkeyup = event => { + this.textbox.onkeyup = () => { // Pressing Enter key while pressing Meta key, and next, even when // releasing Enter key before releasing Meta key, the keyup event is not // fired. Therefore, if Enter keydown is detecting, continue the post |