mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 14:54:25 +00:00
Bug 1333147 - Do not use owner as triggeringPrincipal when creating session history entry
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user