Bug 1489402 - Middle-clicking a link from the address bar dropdown may apply the wrong overflow effect on the URL. r=adw a=pascalc
authorMarco Bonardo <mbonardo@mozilla.com>
Tue, 11 Sep 2018 03:02:50 +0000
changeset 489850 ec22c8843396
parent 489849 fe879d96c14b
child 489851 f09bf04f488c
push id9802
push userncsoregi@mozilla.com
push date2018-09-14 19:50 +0000
treeherdermozilla-beta@dd935a08ff4a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersadw, pascalc
bugs1489402
milestone63.0
Bug 1489402 - Middle-clicking a link from the address bar dropdown may apply the wrong overflow effect on the URL. r=adw a=pascalc Differential Revision: https://phabricator.services.mozilla.com/D5444
browser/base/content/urlbarBindings.xml
--- a/browser/base/content/urlbarBindings.xml
+++ b/browser/base/content/urlbarBindings.xml
@@ -1097,20 +1097,18 @@ file, You can obtain one at http://mozil
           } catch (ex) {
             // This load can throw an exception in certain cases, which means
             // we'll want to replace the URL with the loaded URL:
             if (ex.result != Cr.NS_ERROR_LOAD_SHOWED_ERRORPAGE) {
               this.handleRevert();
             }
           }
 
-          if (openUILinkWhere == "current") {
-            // Ensure the start of the URL is visible for usability reasons.
-            this.selectionStart = this.selectionEnd = 0;
-          }
+          // Ensure the start of the URL is visible for usability reasons.
+          this.selectionStart = this.selectionEnd = 0;
         ]]></body>
       </method>
 
       <method name="_parseAndRecordSearchEngineLoad">
         <parameter name="engineOrEngineName"/>
         <parameter name="query"/>
         <parameter name="event"/>
         <parameter name="openUILinkWhere"/>