Bug 1182569: Use AsyncOpen2 for docshell loads

native in moebius
This commit is contained in:
janekptacijarabaci 2018-04-22 21:47:27 +02:00 committed by Roy Tam
commit 78102ec8c0
3 changed files with 21 additions and 53 deletions

View file

@ -834,7 +834,7 @@ NS_IMETHODIMP nsURILoader::OpenURI(nsIChannel *channel,
// the preferred protocol handler.
// But for now, I'm going to let necko do the work for us....
rv = channel->AsyncOpen(loader, nullptr);
rv = channel->AsyncOpen2(loader);
// no content from this load - that's OK.
if (rv == NS_ERROR_NO_CONTENT) {