diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 33b892b864b0..958e73ce2a94 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -6964,6 +6964,10 @@ var gIdentityHandler = { host = this.getEffectiveHost(); } catch (e) { // Some URIs might have no hosts. + } + + if (!host) { + // Fallback for special protocols. host = this._lastUri.specIgnoringRef; }