From 06849ebe5dc63b188ed486fbca08885a1928c159 Mon Sep 17 00:00:00 2001 From: "jaggernaut%netscape.com" Date: Thu, 14 Sep 2006 06:01:36 +0000 Subject: [PATCH] Bug 117857: window.status overwrites URL of link you are hovering over Bug 99009: setting window.status from onmouseover doesn't work for links r=bryner, timeless, sr=jst, a=asa git-svn-id: svn://10.0.0.236/trunk@211000 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/suite/browser/nsBrowserStatusHandler.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/suite/browser/nsBrowserStatusHandler.js b/mozilla/suite/browser/nsBrowserStatusHandler.js index f36e0ccd227..9f018420130 100644 --- a/mozilla/suite/browser/nsBrowserStatusHandler.js +++ b/mozilla/suite/browser/nsBrowserStatusHandler.js @@ -147,13 +147,11 @@ nsBrowserStatusHandler.prototype = { this.overLink = link; this.updateStatusField(); - // set empty so defaults show up next change - this.overLink = ""; }, updateStatusField : function() { - var text = this.jsStatus || this.overLink || this.status || this.jsDefaultStatus || this.defaultStatus; + var text = this.overLink || this.status || this.jsStatus || this.jsDefaultStatus || this.defaultStatus; // check the current value so we don't trigger an attribute change // and cause needless (slow!) UI updates @@ -280,6 +278,8 @@ nsBrowserStatusHandler.prototype = onLocationChange : function(aWebProgress, aRequest, aLocation) { + this.setOverLink("", null); + var location = aLocation.spec; if (this.hideAboutBlank) {