Bug 613365 - If location bar is focused, hovering a link overlays a blue area on top of the current URL. It should not change the location bar. r=dao, a=dolske
authorDrew Willcoxon <adw@mozilla.com>
Sat, 20 Nov 2010 14:40:56 -0800
changeset 57962 8af7288622ea71cf505829aaedbe588cc6e87726
parent 57961 0012ca751ce10ec068e538e4e3759efcc0000398
child 57963 0601ba3e939572d2ea0a773ec05c2b4e72af92ae
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersdao, dolske
bugs613365
milestone2.0b8pre
Bug 613365 - If location bar is focused, hovering a link overlays a blue area on top of the current URL. It should not change the location bar. r=dao, a=dolske
browser/base/content/urlbarBindings.xml
--- a/browser/base/content/urlbarBindings.xml
+++ b/browser/base/content/urlbarBindings.xml
@@ -641,18 +641,19 @@
       ]]></field>
 
       <method name="setOverLink">
         <parameter name="aURL"/>
         <body><![CDATA[
           this._cancelOverLinkDelayTimer();
 
           // Hide the over-link immediately if necessary.
-          if (!aURL && (XULBrowserWindow.hideOverLinkImmediately ||
-                        this._hideOverLinkImmediately)) {
+          if ((!aURL && (XULBrowserWindow.hideOverLinkImmediately ||
+                         this._hideOverLinkImmediately)) ||
+              this.focused) {
             this._setOverLinkState(null);
             return;
           }
 
           // If aURL is falsey, fade it out after a delay.  This happens on
           // mouseout for example.
           if (!aURL) {
             this._overLinkDelayTimer = setTimeout(function overLinkOut(self) {