Bug 1178160 - [Control Center] Show cropped URL for file:// URIs in the security section r=MattN

This commit is contained in:
Tim Taubert 2015-06-29 06:36:22 +02:00
Родитель 9c25a5c063
Коммит 0444f4ae58
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -6964,6 +6964,10 @@ var gIdentityHandler = {
host = this.getEffectiveHost(); host = this.getEffectiveHost();
} catch (e) { } catch (e) {
// Some URIs might have no hosts. // Some URIs might have no hosts.
}
if (!host) {
// Fallback for special protocols.
host = this._lastUri.specIgnoringRef; host = this._lastUri.specIgnoringRef;
} }