mshtml: Fix loading pages in containers without document.

This commit is contained in:
Jacek Caban 2006-12-14 00:20:34 +01:00 committed by Alexandre Julliard
parent f609a768e7
commit d8a761c0ab
1 changed files with 6 additions and 1 deletions

View File

@ -636,7 +636,7 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen
return WINE_NS_LOAD_FROM_MONIKER;
}
}else {
}else if(container->doc) {
BOOL cont = before_async_open(This, container);
nsIWebBrowserChrome_Release(NSWBCHROME(container));
@ -644,6 +644,11 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen
TRACE("canceled\n");
return NS_ERROR_UNEXPECTED;
}
}else {
nsIWebBrowserChrome_Release(NSWBCHROME(container));
return This->channel
? nsIChannel_AsyncOpen(This->channel, aListener, aContext)
: NS_ERROR_UNEXPECTED;
}
}