Fixing nsbeta2+ bug 45019, images didn't show up on document that were fully created with document.open(): document.write();... r=nisheet&rpotts

This commit is contained in:
jst%netscape.com 2000-07-21 23:44:38 +00:00
parent 1620537c33
commit 40d98d5682
3 changed files with 5 additions and 8 deletions

View File

@ -1914,10 +1914,7 @@ nsHTMLDocument::OpenCommon(nsIURI* aSourceURL)
mScriptGlobalObject->GetDocShell(getter_AddRefs(docshell));
if (docshell) {
nsCOMPtr<nsIWebNavigation> wn(do_QueryInterface(docshell));
if(wn) {
wn->Stop();
}
docshell->StopLoad();
}
}

View File

@ -318,6 +318,9 @@ NS_IMETHODIMP nsDocShell::CreateLoadInfo(nsIDocShellLoadInfo** aLoadInfo)
NS_IMETHODIMP nsDocShell::StopLoad()
{
// Cancel any timers that were set for this loader.
CancelRefreshURITimers();
if(mLoadCookie)
{
nsCOMPtr<nsIURILoader> uriLoader = do_GetService(NS_URI_LOADER_PROGID);

View File

@ -1914,10 +1914,7 @@ nsHTMLDocument::OpenCommon(nsIURI* aSourceURL)
mScriptGlobalObject->GetDocShell(getter_AddRefs(docshell));
if (docshell) {
nsCOMPtr<nsIWebNavigation> wn(do_QueryInterface(docshell));
if(wn) {
wn->Stop();
}
docshell->StopLoad();
}
}