зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1178160 - [Control Center] Show cropped URL for file:// URIs in the security section r=MattN
This commit is contained in:
Родитель
9c25a5c063
Коммит
0444f4ae58
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче