зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1197918 - Use channel->Open2() in rdf/base/nsRDFXMLDataSource.cpp (r=sicking)
This commit is contained in:
Родитель
990593f9cf
Коммит
15941cbdfc
|
@ -483,12 +483,12 @@ RDFXMLDataSourceImpl::BlockingParse(nsIURI* aURL, nsIStreamListener* aConsumer)
|
|||
rv = NS_NewChannel(getter_AddRefs(channel),
|
||||
aURL,
|
||||
nsContentUtils::GetSystemPrincipal(),
|
||||
nsILoadInfo::SEC_NORMAL,
|
||||
nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL,
|
||||
nsIContentPolicy::TYPE_OTHER);
|
||||
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
nsCOMPtr<nsIInputStream> in;
|
||||
rv = channel->Open(getter_AddRefs(in));
|
||||
rv = channel->Open2(getter_AddRefs(in));
|
||||
|
||||
// Report success if the file doesn't exist, but propagate other errors.
|
||||
if (rv == NS_ERROR_FILE_NOT_FOUND) return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче