Bug 1497464 - UrlbarInput value setter needs to call formatValue. r=Standard8
authorDão Gottwald <dao@mozilla.com>
Tue, 09 Oct 2018 11:40:25 +0000
changeset 498604 d19abac48609d70d5bb491bd39ef9ea12088af03
parent 498603 3bc82182725eb9edc31fd0ef19f7f659ab612020
child 498605 e96bcfe8669abdb7eaa9f034daba53d44d8c3e51
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)
reviewersStandard8
bugs1497464
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 1497464 - UrlbarInput value setter needs to call formatValue. r=Standard8 Differential Revision: https://phabricator.services.mozilla.com/D8069
browser/components/urlbar/UrlbarInput.jsm
--- a/browser/components/urlbar/UrlbarInput.jsm
+++ b/browser/components/urlbar/UrlbarInput.jsm
@@ -183,16 +183,17 @@ class UrlbarInput {
     return this.inputField.getAttribute("focused") == "true";
   }
 
   _set_value(val) {
     val = this.trimValue(val);
 
     this.valueIsTyped = false;
     this.inputField.value = val;
+    this.formatValue();
 
     return val;
   }
 
   // Private methods below.
 
   _updateTextOverflow() {
     if (!this._overflowing) {