Bug 749893 Bfcache navigation should clear old tab favicon r=Ratty a=Ratty.
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Thu, 03 May 2012 22:14:22 +0100
changeset 22718 58780f423196f8c3a9c19adfc5b46e2eb20f9179
parent 22717 8ebc2999a46b87eab0159ef46ab70c0f26c6702d
child 22719 4ce522e642855c82658b7cd3325cb298683097cb
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersRatty, Ratty
bugs749893
Bug 749893 Bfcache navigation should clear old tab favicon r=Ratty a=Ratty.
suite/browser/tabbrowser.xml
--- a/suite/browser/tabbrowser.xml
+++ b/suite/browser/tabbrowser.xml
@@ -537,16 +537,18 @@
                       var sz = this.mTabBrowser.mPrefs.getIntPref("browser.chrome.image_icons.max_size");
                       if (req.image.width <= sz && req.image.height <= sz)
                         this.mTab.setAttribute("image", this.mBrowser.currentURI.spec);
                     }
                   }
                 }
                 else if (this.mTabBrowser.shouldLoadFavIcon(location))
                   this.mTabBrowser.loadFavIcon(location, "image", this.mTab);
+                else
+                  this.mTab.removeAttribute("image");
 
                 if (this.mTab.label == this.mTabBrowser.mStringBundle.getString("tabs.loading"))
                   this.mTabBrowser.setTabTitle(this.mTab);
               }
 
               if (oldBlank)
                 return;