diff --git a/mobile/chrome/content/bindings/browser.xml b/mobile/chrome/content/bindings/browser.xml index 52c0efeb09d4..f46e69e58f9e 100644 --- a/mobile/chrome/content/bindings/browser.xml +++ b/mobile/chrome/content/bindings/browser.xml @@ -99,14 +99,14 @@ case "pageshow": self.onPageShow(aMessage); - if (self.mIconURL == "" && self._documentURI) { - // newURI call is throwing for chrome URI - try { - // Use documentURIObject in the favicon construction so that we + if (!self.mIconURL && self._documentURI) { + let iconURL = null; + if (self.shouldLoadFavicon()) { + // Use documentURI in the favicon construction so that we // do the right thing with about:-style error pages. Bug 515188 - self.loadFavicon(self.documentURI.prePath + "/favicon.ico", null); + iconURL = self.documentURI.prePath + "/favicon.ico"; } - catch(e) {} + self.loadFavicon(iconURL, null); } break; @@ -152,23 +152,24 @@ -