mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1197925 - Use channel->Open2() in intl/hyphenation/hnjstdio.cpp (r=sicking)
This commit is contained in:
parent
20fdbb959b
commit
97fde78f8f
@ -42,14 +42,14 @@ hnjFopen(const char* aURISpec, const char* aMode)
|
|||||||
rv = NS_NewChannel(getter_AddRefs(channel),
|
rv = NS_NewChannel(getter_AddRefs(channel),
|
||||||
uri,
|
uri,
|
||||||
nsContentUtils::GetSystemPrincipal(),
|
nsContentUtils::GetSystemPrincipal(),
|
||||||
nsILoadInfo::SEC_NORMAL,
|
nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL,
|
||||||
nsIContentPolicy::TYPE_OTHER);
|
nsIContentPolicy::TYPE_OTHER);
|
||||||
if (NS_FAILED(rv)) {
|
if (NS_FAILED(rv)) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
nsCOMPtr<nsIInputStream> instream;
|
nsCOMPtr<nsIInputStream> instream;
|
||||||
rv = channel->Open(getter_AddRefs(instream));
|
rv = channel->Open2(getter_AddRefs(instream));
|
||||||
if (NS_FAILED(rv)) {
|
if (NS_FAILED(rv)) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user