Bug 1596384 - Remove redundant gURLBar.startLayoutExtend call from focusAndSelectUrlBar. r=harry
authorDão Gottwald <dao@mozilla.com>
Thu, 14 Nov 2019 12:32:52 +0000
changeset 501921 d4136e8170903ad9ad35cf0fff0fae8365d21b03
parent 501920 1ff83b67e45381297b75de8acff22971492ccaf8
child 501922 f609d410b6621f3e82c65054c958e62e45d4ea13
push id114172
push userdluca@mozilla.com
push dateTue, 19 Nov 2019 11:31:10 +0000
treeherdermozilla-inbound@b5c5ba07d3db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersharry
bugs1596384
milestone72.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 1596384 - Remove redundant gURLBar.startLayoutExtend call from focusAndSelectUrlBar. r=harry Differential Revision: https://phabricator.services.mozilla.com/D52987
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -2825,19 +2825,16 @@ function focusAndSelectUrlBar() {
     return;
   }
 
   if (window.fullScreen) {
     FullScreen.showNavToolbox();
   }
 
   gURLBar.select();
-  // In cases where the Urlbar is focused but not expanded, the select call
-  // above may not result in an expansion.
-  gURLBar.startLayoutExtend();
 }
 
 function openLocation(event) {
   if (window.location.href == AppConstants.BROWSER_CHROME_URL) {
     focusAndSelectUrlBar();
     if (gURLBar.openViewOnFocusForCurrentTab && !gURLBar.view.isOpen) {
       gURLBar.startQuery({ event });
     }