Bug 289553 Make dynamically changing the favicon update the icon in the tab r=mconnor a=asa

This commit is contained in:
cst@andrew.cmu.edu 2007-08-21 22:00:06 -07:00
parent 13a065c643
commit 58e4d63d80

View File

@ -394,6 +394,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) ||
@ -785,7 +792,7 @@
}
if (listener)
listener.mIcon = href;
listener.setIcon(href);
if (tabBrowser.mProgressListeners) {
var targetBrowser = tabBrowser.getBrowserAtIndex(browserIndex);