From 7eee8a9c39bcd5aee01316d11df71585ae22b5ea Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Thu, 5 Jul 2018 19:40:43 +0200 Subject: nsIContentPolicy::TYPE_DOCUMENT - Use "aLoadInfo->ContextForTopLevelLoad()" instead of "aLoadInfo->LoadingNode()" Issue #600 --- dom/security/nsContentSecurityManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dom/security/nsContentSecurityManager.cpp') diff --git a/dom/security/nsContentSecurityManager.cpp b/dom/security/nsContentSecurityManager.cpp index 4ee9b4877..570730312 100644 --- a/dom/security/nsContentSecurityManager.cpp +++ b/dom/security/nsContentSecurityManager.cpp @@ -303,7 +303,7 @@ DoContentSecurityChecks(nsIChannel* aChannel, nsILoadInfo* aLoadInfo) case nsIContentPolicy::TYPE_DOCUMENT: { mimeTypeGuess = EmptyCString(); - requestingContext = aLoadInfo->LoadingNode(); + requestingContext = aLoadInfo->ContextForTopLevelLoad(); break; } -- cgit v1.2.3