Bug 1182569: Use AsyncOpen2 for docshell loads

This commit is contained in:
janekptacijarabaci 2018-04-30 21:00:21 +02:00 committed by Roy Tam
commit e162907475
3 changed files with 21 additions and 35 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) {