Bug 1195611 - Use channel->ascynOpen2 in rdf/base/nsRDFXMLDataSource.cpp (r=sicking)

This commit is contained in:
Christoph Kerschbaumer 2015-08-18 09:54:36 -07:00
parent eaa13b8628
commit 686ba8f015

View File

@ -952,12 +952,12 @@ RDFXMLDataSourceImpl::Refresh(bool aBlocking)
rv = NS_NewChannel(getter_AddRefs(channel),
mURL,
nsContentUtils::GetSystemPrincipal(),
nsILoadInfo::SEC_NORMAL,
nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL,
nsIContentPolicy::TYPE_OTHER,
nullptr, // aLoadGroup
this); // aCallbacks
NS_ENSURE_SUCCESS(rv, rv);
rv = channel->AsyncOpen(this, nullptr);
rv = channel->AsyncOpen2(this);
NS_ENSURE_SUCCESS(rv, rv);
// So we don't try to issue two asynchronous loads at once.