From 20fdbb959b992dafc56920a3ee97621fc47df75c Mon Sep 17 00:00:00 2001 From: Christoph Kerschbaumer Date: Wed, 2 Sep 2015 11:37:16 -0700 Subject: [PATCH] Bug 1197923 - Use channel->Open2() in intl/strres/nsStringBundle.cpp (r=sicking) --- intl/strres/nsStringBundle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intl/strres/nsStringBundle.cpp b/intl/strres/nsStringBundle.cpp index d4774c29c37b..98761de4ccb5 100644 --- a/intl/strres/nsStringBundle.cpp +++ b/intl/strres/nsStringBundle.cpp @@ -86,7 +86,7 @@ nsStringBundle::LoadProperties() rv = NS_NewChannel(getter_AddRefs(channel), uri, nsContentUtils::GetSystemPrincipal(), - nsILoadInfo::SEC_NORMAL, + nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL, nsIContentPolicy::TYPE_OTHER); if (NS_FAILED(rv)) return rv; @@ -95,7 +95,7 @@ nsStringBundle::LoadProperties() channel->SetContentType(NS_LITERAL_CSTRING("text/plain")); nsCOMPtr in; - rv = channel->Open(getter_AddRefs(in)); + rv = channel->Open2(getter_AddRefs(in)); if (NS_FAILED(rv)) return rv; NS_ASSERTION(NS_SUCCEEDED(rv) && in, "Error in OpenBlockingStream");