Bug 1197926 - Use channel->Open2() in extensions/pref/autoconfig/src/nsReadConfig.cpp (r=sicking)

This commit is contained in:
Christoph Kerschbaumer 2015-09-02 11:38:28 -07:00
parent 97fde78f8f
commit 6eac97dd9e

View File

@ -260,11 +260,11 @@ nsresult nsReadConfig::openAndEvaluateJSFile(const char *aFileName, int32_t obsc
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);
rv = channel->Open(getter_AddRefs(inStr));
rv = channel->Open2(getter_AddRefs(inStr));
NS_ENSURE_SUCCESS(rv, rv);
}