Bug 1205154 - Use channel->Open2() in js/xpconnect/src/XPCJSRuntime.cpp (r=sicking)

This commit is contained in:
Christoph Kerschbaumer 2015-09-15 19:52:07 -07:00
Родитель 5b7c3ec0ea
Коммит cd033a0e00
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -3146,7 +3146,7 @@ ReadSourceFromFilename(JSContext* cx, const char* filename, char16_t** src, size
rv = NS_NewChannel(getter_AddRefs(scriptChannel),
uri,
nsContentUtils::GetSystemPrincipal(),
nsILoadInfo::SEC_NORMAL,
nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL,
nsIContentPolicy::TYPE_OTHER);
NS_ENSURE_SUCCESS(rv, rv);
@ -3165,7 +3165,7 @@ ReadSourceFromFilename(JSContext* cx, const char* filename, char16_t** src, size
scriptChannel->SetContentType(NS_LITERAL_CSTRING("text/plain"));
nsCOMPtr<nsIInputStream> scriptStream;
rv = scriptChannel->Open(getter_AddRefs(scriptStream));
rv = scriptChannel->Open2(getter_AddRefs(scriptStream));
NS_ENSURE_SUCCESS(rv, rv);
uint64_t rawLen;