Bug 1197923 - Use channel->Open2() in intl/strres/nsStringBundle.cpp (r=sicking)

This commit is contained in:
Christoph Kerschbaumer 2015-09-02 11:37:16 -07:00
parent 39a631813d
commit 20fdbb959b

View File

@ -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<nsIInputStream> 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");