Bug 521967 - Going back/forward to a page shows the default favicon briefly. r=mano
authorDão Gottwald <dao@mozilla.com>
Wed, 14 Oct 2009 14:49:14 +0200
changeset 33132 ffa03358306defae931a60ee867d975c79be0b6c
parent 33131 57aacf736fbbfc50f384bcb05e0856a52252c40c
child 33133 f1d0a0a9d571ecd1ca176d24869a91b4c07559b1
push id798
push userdgottwald@mozilla.com
push dateTue, 24 Nov 2009 20:42:48 +0000
reviewersmano
bugs521967
milestone1.9.2b4pre
Bug 521967 - Going back/forward to a page shows the default favicon briefly. r=mano
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -499,17 +499,17 @@
             onLocationChange : function(aWebProgress, aRequest, aLocation)
             {
               // The document loaded correctly, clear the value if we should
               if (this.mBrowser.userTypedClear > 0)
                 this.mBrowser.userTypedValue = null;
 
               if (aWebProgress.DOMWindow == this.mBrowser.contentWindow &&
                   aWebProgress.isLoadingDocument)
-                this.mTabBrowser.setIcon(this.mTab, null);
+                this.mTabBrowser.getBrowserForTab(this.mTab).mIconURL = null;
 
               // changing location, clear out the missing plugins list
               this.mBrowser.missingPlugins = null;
 
               if (this.mBlank)
                 return;
 
               if (this.mTabBrowser.mCurrentTab == this.mTab) {