Bug 1599693 - Fix 'Search using <engine name>' tooltip on the search bar. r=ntim a=jcristau
authorMark Banner <standard8@mozilla.com>
Tue, 03 Dec 2019 15:40:45 +0000
changeset 566684 afdb2a315dca7cfa07f75b5b6767c35feb7490d5
parent 566683 05a20bf0606f6d43549fe2c2e92db504286fd3ea
child 566685 b69378d81dcfc12911bdb4a1e6b23f0c1c5a2af2
push id12373
push userccoroiu@mozilla.com
push dateWed, 04 Dec 2019 10:47:12 +0000
treeherdermozilla-beta@b69378d81dcf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersntim, jcristau
bugs1599693
milestone72.0
Bug 1599693 - Fix 'Search using <engine name>' tooltip on the search bar. r=ntim a=jcristau Differential Revision: https://phabricator.services.mozilla.com/D55665
browser/components/search/content/searchbar.js
--- a/browser/components/search/content/searchbar.js
+++ b/browser/components/search/content/searchbar.js
@@ -222,20 +222,19 @@
     setIcon(element, uri) {
       element.setAttribute("src", uri);
     }
 
     updateDisplay() {
       let uri = this.currentEngine.iconURI;
       this.setIcon(this, uri ? uri.spec : "");
 
-      let name = this.currentEngine.name;
-      let text = this._stringBundle.getFormattedString("searchtip", [name]);
-      this._textbox.label = text;
-      this._textbox.tooltipText = text;
+      this._textbox.title = this._stringBundle.getFormattedString("searchtip", [
+        this.currentEngine.name,
+      ]);
     }
 
     updateGoButtonVisibility() {
       this.querySelector(".search-go-button").hidden = !this._textbox.value;
     }
 
     openSuggestionsPanel(aShowOnlySettingsIfEmpty) {
       if (this._textbox.open) {