summaryrefslogtreecommitdiff
path: root/docshell/base
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-30 23:49:41 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-30 23:49:41 +0200
commit73b55c16d642156c58142d1ce4cfb79229cfadb0 (patch)
treee298a821b3cd13508c9acd24b8c165114b9b13ca /docshell/base
parent0695943d2dff6dd8e245fad1309f210f26a0c49c (diff)
downloaduxp-73b55c16d642156c58142d1ce4cfb79229cfadb0.tar.gz
Bug 1333147 - Do not use owner as triggeringPrincipal when creating session history entry
Diffstat (limited to 'docshell/base')
-rw-r--r--docshell/base/nsDocShell.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp
index 62383bc6ae..8f924567c3 100644
--- a/docshell/base/nsDocShell.cpp
+++ b/docshell/base/nsDocShell.cpp
@@ -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) {