Bug 1494334 - Implement UrlbarInput::textValue getter. r=Standard8
authorDão Gottwald <dao@mozilla.com>
Tue, 23 Oct 2018 16:19:56 +0000
changeset 490954 bc350062ad1b45d628e05ee715ff51d1f4d8bcdc
parent 490953 33523dc590feb2d339e4722fdfe1222d341bead4
child 490955 14b5c82201e5ea74962f98b6accc9d9f686c45fe
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersStandard8
bugs1494334
milestone65.0a1
Bug 1494334 - Implement UrlbarInput::textValue getter. r=Standard8 Depends on D9505 Differential Revision: https://phabricator.services.mozilla.com/D9508
browser/components/urlbar/UrlbarInput.jsm
--- a/browser/components/urlbar/UrlbarInput.jsm
+++ b/browser/components/urlbar/UrlbarInput.jsm
@@ -240,16 +240,20 @@ class UrlbarInput {
     return this.textbox.getAttribute("focused") == "true";
   }
 
   get goButton() {
     return this.document.getAnonymousElementByAttribute(this.textbox, "anonid",
       "urlbar-go-button");
   }
 
+  get textValue() {
+    return this.inputField.value;
+  }
+
   get value() {
     return this._untrimmedValue;
   }
 
   set value(val) {
     this._untrimmedValue = val;
 
     val = this.trimValue(val);