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 33833 641afe6a9ac776f7830b3f5bd155289a5a194fae
parent 33832 aefdc07e7644970353cd245f31f630405288009a
child 33834 4f6351d943efdea1d07ddfa91318a78db3987c32
push id9712
push userdgottwald@mozilla.com
push dateWed, 14 Oct 2009 12:52:24 +0000
treeherdermozilla-central@4f6351d943ef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmano
bugs521967
milestone1.9.3a1pre
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
@@ -520,17 +520,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) {