From 61dd6030e4bd84cf192178da023761da02ed65a7 Mon Sep 17 00:00:00 2001 From: Christoph Kerschbaumer Date: Wed, 2 Sep 2015 11:37:57 -0700 Subject: [PATCH] Bug 1197925 - Use channel->Open2() in intl/hyphenation/hnjstdio.cpp (r=sicking) --- intl/hyphenation/hnjstdio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intl/hyphenation/hnjstdio.cpp b/intl/hyphenation/hnjstdio.cpp index 06fd98e0b55..660ebaf1329 100644 --- a/intl/hyphenation/hnjstdio.cpp +++ b/intl/hyphenation/hnjstdio.cpp @@ -42,14 +42,14 @@ hnjFopen(const char* aURISpec, const char* aMode) 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 nullptr; } nsCOMPtr instream; - rv = channel->Open(getter_AddRefs(instream)); + rv = channel->Open2(getter_AddRefs(instream)); if (NS_FAILED(rv)) { return nullptr; }