Bug 1333147 - Do not use owner as triggeringPrincipal when creating session history entry

This commit is contained in:
janekptacijarabaci
2018-04-30 23:49:41 +02:00
committed by Roy Tam
parent 5bbef1bbc3
commit fab9589713
-5
View File
@@ -12413,11 +12413,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) {