Bug 1581763 - Fix broken megabar check. r=harry
authorDão Gottwald <dao@mozilla.com>
Tue, 17 Sep 2019 12:42:29 +0000
changeset 493567 386d29f3095d353557e2a6288d53af55e22cbddd
parent 493566 46c0a2f0acb42bdc85183cbed6fd370ec16ccf8b
child 493568 3258db2cb365a1cb73748c36ee023edc8848d0f1
push id95557
push userdgottwald@mozilla.com
push dateTue, 17 Sep 2019 12:48:06 +0000
treeherderautoland@386d29f3095d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersharry
bugs1581763
milestone71.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 1581763 - Fix broken megabar check. r=harry Differential Revision: https://phabricator.services.mozilla.com/D46130
browser/components/urlbar/UrlbarView.jsm
--- a/browser/components/urlbar/UrlbarView.jsm
+++ b/browser/components/urlbar/UrlbarView.jsm
@@ -1228,17 +1228,17 @@ class UrlbarView {
       (event.target.classList.contains("urlbarView-url") ||
         event.target.classList.contains("urlbarView-title"))
     ) {
       this._setElementOverflowing(event.target, false);
     }
   }
 
   _on_resize() {
-    if (this.megabar) {
+    if (this.input.megabar) {
       return;
     }
 
     if (this._windowOuterWidth == this.window.outerWidth) {
       // Sometimes a resize event is fired when the window's size doesn't
       // actually change; at least, browser_tabMatchesInAwesomebar.js triggers
       // it intermittently, which causes that test to hang or fail.  Ignore
       // those events.