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
This commit is contained in:
parent
5ea7b85e65
commit
06849ebe5d
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user