mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 289609 Dynamically changing the favicon doesn't update the icon in the tab.
r+sr=neil a=asa
This commit is contained in:
parent
b88ac91a7c
commit
cf010b6f9a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user