Bug 1391421 - Part 8 - Fix site identity handling. r=jwu

"getEffectiveHost" further down expects the URI to be available - apparently this was broken ever since the original implementation.

MozReview-Commit-ID: C1Q6PBYcvk3

--HG--
extra : rebase_source : 5e71c300261ba9cbaff7e006ce22637c29596680
This commit is contained in:
Jan Henning 2017-09-15 20:43:40 +02:00
Родитель 18b4ca79db
Коммит 6cddaccbac
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -5592,12 +5592,12 @@ var IdentityHandler = {
}
this._lastLocation = locationObj;
let uri = aBrowser.currentURI;
this._uri = aBrowser.currentURI;
try {
uri = Services.uriFixup.createExposableURI(uri);
this._uri = Services.uriFixup.createExposableURI(this._uri);
} catch (e) {}
let identityMode = this.getIdentityMode(aState, uri);
let identityMode = this.getIdentityMode(aState, this._uri);
let mixedDisplay = this.getMixedDisplayMode(aState);
let mixedActive = this.getMixedActiveMode(aState);
let trackingMode = this.getTrackingMode(aState, aBrowser);