diff --git a/mobile/chrome/content/browser-ui.js b/mobile/chrome/content/browser-ui.js index b7ced491b5f0..60e45677425b 100644 --- a/mobile/chrome/content/browser-ui.js +++ b/mobile/chrome/content/browser-ui.js @@ -399,7 +399,10 @@ var BrowserUI = { update : function(aState) { let icons = document.getElementById("urlbar-icons"); - let uri = Browser.selectedBrowser.currentURI; + + // Use documentURIObject in the favicon construction so that we + // do the right thing with about:-style error pages. Bug 515188 + let uri = Browser.selectedBrowser.contentDocument.documentURIObject; switch (aState) { case TOOLBARSTATE_LOADED: