Bug 1500086 - While typing, show the Go button and hide the history dropmarker. r=mak
☠☠ backed out by 8b9c8d77185a ☠ ☠
authorDão Gottwald <dao@mozilla.com>
Fri, 19 Oct 2018 11:20:34 +0000
changeset 500634 59fed9e69c53f229e240d0bdfb0b5ca2d3afeb67
parent 500633 9a2be0efbc4c4f1931f39a1dfe4a082cec09b2e0
child 500635 fe1c2bb6cfbc4d2da8c30094e15cdb7d92039d94
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs1500086
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1500086 - While typing, show the Go button and hide the history dropmarker. r=mak Differential Revision: https://phabricator.services.mozilla.com/D9106
browser/components/urlbar/UrlbarInput.jsm
--- a/browser/components/urlbar/UrlbarInput.jsm
+++ b/browser/components/urlbar/UrlbarInput.jsm
@@ -430,16 +430,22 @@ class UrlbarInput {
   }
 
   _on_input(event) {
     let value = event.target.value;
     this.valueIsTyped = true;
     this._untrimmedValue = value;
     this.window.gBrowser.userTypedValue = value;
 
+    if (value) {
+      this.setAttribute("usertyping", "true");
+    } else {
+      this.removeAttribute("usertyping");
+    }
+
     // XXX Fill in lastKey, and add anything else we need.
     this.controller.startQuery(new QueryContext({
       searchString: value,
       lastKey: "",
       maxResults: UrlbarPrefs.get("maxRichResults"),
       isPrivate: this.isPrivate,
     }));
   }