Bug 1333147 - Do not use owner as triggeringPrincipal when creating session history entry. r=bz

--HG--
extra : rebase_source : 98d00f4a448423cf9bd8b80f1f95c6862ac6f930
This commit is contained in:
Christoph Kerschbaumer 2017-03-10 16:39:42 +01:00
Родитель b7941e38ab
Коммит fa5656d4cb
1 изменённых файлов: 0 добавлений и 5 удалений

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

@ -12350,11 +12350,6 @@ nsDocShell::AddToSessionHistory(nsIURI* aURI, nsIChannel* aChannel,
discardLayoutState = ShouldDiscardLayoutState(httpChannel);
}
// XXX Bug 1286838: Replace channel owner with loadInfo triggeringPrincipal
nsCOMPtr<nsISupports> owner;
aChannel->GetOwner(getter_AddRefs(owner));
triggeringPrincipal = do_QueryInterface(owner);
nsCOMPtr<nsILoadInfo> loadInfo = aChannel->GetLoadInfo();
if (loadInfo) {
if (!triggeringPrincipal) {