summaryrefslogtreecommitdiffstats
path: root/docshell/base/nsDocShell.cpp
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-30 21:00:21 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-30 21:00:21 +0200
commite66562aa8b7bed7f194355eb3953ead052e2aa48 (patch)
tree093206f1fb3fe494d5814407e5c168e3079a7431 /docshell/base/nsDocShell.cpp
parentfefce8f7ccbc476cfc46e61b01eff069346d3c73 (diff)
downloadUXP-e66562aa8b7bed7f194355eb3953ead052e2aa48.tar
UXP-e66562aa8b7bed7f194355eb3953ead052e2aa48.tar.gz
UXP-e66562aa8b7bed7f194355eb3953ead052e2aa48.tar.lz
UXP-e66562aa8b7bed7f194355eb3953ead052e2aa48.tar.xz
UXP-e66562aa8b7bed7f194355eb3953ead052e2aa48.zip
Bug 1182569: Use AsyncOpen2 for docshell loads
Diffstat (limited to 'docshell/base/nsDocShell.cpp')
-rw-r--r--docshell/base/nsDocShell.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp
index bd2a8a433..de8f79f0a 100644
--- a/docshell/base/nsDocShell.cpp
+++ b/docshell/base/nsDocShell.cpp
@@ -1644,7 +1644,7 @@ nsDocShell::LoadStream(nsIInputStream* aStream, nsIURI* aURI,
uri,
aStream,
triggeringPrincipal,
- nsILoadInfo::SEC_NORMAL,
+ nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL,
nsIContentPolicy::TYPE_OTHER,
aContentType,
aContentCharset);
@@ -10961,7 +10961,8 @@ nsDocShell::DoURILoad(nsIURI* aURI,
}
nsLoadFlags loadFlags = mDefaultLoadFlags;
- nsSecurityFlags securityFlags = nsILoadInfo::SEC_NORMAL;
+ nsSecurityFlags securityFlags =
+ nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL;
if (aFirstParty) {
// tag first party URL loads