From 58e4d63d80db61b78c16f5a187351ed8c32f5f56 Mon Sep 17 00:00:00 2001 From: "cst@andrew.cmu.edu" Date: Tue, 21 Aug 2007 22:00:06 -0700 Subject: [PATCH] Bug 289553 Make dynamically changing the favicon update the icon in the tab r=mconnor a=asa --- browser/base/content/tabbrowser.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index 06f3d0b3722..57a878bcc83 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -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);