From f6f245bde21f89e829262c5d87e44358a70a1b54 Mon Sep 17 00:00:00 2001 From: Christoph Kerschbaumer Date: Tue, 15 Sep 2015 19:49:55 -0700 Subject: [PATCH] Bug 1205153 - Use channel->Open2() in intl/strres/nsStringBundleTextOverride.cpp (r=sicking) --- intl/strres/nsStringBundleTextOverride.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intl/strres/nsStringBundleTextOverride.cpp b/intl/strres/nsStringBundleTextOverride.cpp index be13f876acd..ec21726d664 100644 --- a/intl/strres/nsStringBundleTextOverride.cpp +++ b/intl/strres/nsStringBundleTextOverride.cpp @@ -153,12 +153,12 @@ nsStringBundleTextOverride::Init() rv = NS_NewChannel(getter_AddRefs(channel), uri, nsContentUtils::GetSystemPrincipal(), - nsILoadInfo::SEC_NORMAL, + nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL, nsIContentPolicy::TYPE_OTHER); NS_ENSURE_SUCCESS(rv, rv); nsCOMPtr in; - rv = channel->Open(getter_AddRefs(in)); + rv = channel->Open2(getter_AddRefs(in)); NS_ENSURE_SUCCESS(rv, rv); static NS_DEFINE_CID(kPersistentPropertiesCID, NS_IPERSISTENTPROPERTIES_CID);