From 0444f4ae585f9536e755e571da42d8d325fbdb23 Mon Sep 17 00:00:00 2001 From: Tim Taubert Date: Mon, 29 Jun 2015 06:36:22 +0200 Subject: [PATCH] Bug 1178160 - [Control Center] Show cropped URL for file:// URIs in the security section r=MattN --- browser/base/content/browser.js | 4 ++++ 1 file changed, 4 insertions(+) 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; }