Bug 697180 - favicon replaced by default one (patch 2) [r=mfinkle]

This commit is contained in:
Sriram Ramasubramanian 2011-10-25 18:04:02 -07:00
parent 4860ab1016
commit 2291f4ed94

View File

@ -541,15 +541,18 @@ abstract public class GeckoApp
if (tab == null)
return;
String oldBaseURI = tab.getURL();
tab.updateURL(uri);
if (!Tabs.getInstance().isSelectedTab(tab))
return;
String oldBaseURI = tab.getURL();
oldBaseURI = oldBaseURI.substring(0, oldBaseURI.indexOf('#'));
String baseURI = uri;
if (baseURI.indexOf('#') != -1)
baseURI = uri.substring(0, uri.indexOf('#'));
String baseURI = uri.substring(0, uri.indexOf('#'));
if (oldBaseURI != null && oldBaseURI.indexOf('#') != -1)
oldBaseURI = oldBaseURI.substring(0, oldBaseURI.indexOf('#'));
if (baseURI.equals(oldBaseURI))
return;