Bug 289609 Dynamically changing the favicon doesn't update the icon in the tab.

r+sr=neil a=asa
This commit is contained in:
cst%andrew.cmu.edu 2005-04-16 23:27:39 +00:00
parent b88ac91a7c
commit cf010b6f9a

View File

@ -250,7 +250,6 @@
var location = aRequest.QueryInterface(nsIChannel).URI;
if (this.mIcon) {
this.mTab.setAttribute("image", this.mIcon);
this.mIcon = "";
}
else if (this.mTabBrowser.shouldLoadFavIcon(location))
this.mTabBrowser.loadFavIcon(location, "image", this.mTab);
@ -324,6 +323,13 @@
}
},
setIcon : function(aURI)
{
this.mIcon = aURI;
if (!this.mTab.hasAttribute("busy"))
this.mTab.setAttribute("image", aURI);
},
QueryInterface : function(aIID)
{
if (aIID.equals(Components.interfaces.nsIWebProgressListener) ||
@ -723,7 +729,7 @@
null) != nsIContentPolicy.ACCEPT)
return;
this.mTabListeners[i].mIcon = href;
this.mTabListeners[i].setIcon(href);
notifyListeners = (this.browsers[i] == this.mCurrentBrowser);
break;
}