From 24532fa8e558bef86d2d1eaeae753385a0704d51 Mon Sep 17 00:00:00 2001 From: "tbogard%aol.net" Date: Mon, 14 Feb 2000 10:27:32 +0000 Subject: [PATCH] Stop now has an implementation. Not yet called. git-svn-id: svn://10.0.0.236/trunk@60729 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 1ee4b2e9a55..5fd7df5fe86 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -856,9 +856,27 @@ NS_IMETHODIMP nsDocShell::Reload() NS_IMETHODIMP nsDocShell::Stop() { - //XXX First Checkin - NS_ERROR("Not Yet Implemented"); - return NS_ERROR_FAILURE; + if(mContentViewer) + mContentViewer->Stop(); + + if(mContentListener->mLoadCookie) + { + nsCOMPtr uriLoader = do_GetService(NS_URI_LOADER_PROGID); + if(uriLoader) + uriLoader->Stop(mContentListener->mLoadCookie); + } + + PRInt32 n; + PRInt32 count = mChildren.Count(); + for(n = 0; n < count; n++) + { + nsIDocShellTreeItem* shell = (nsIDocShellTreeItem*)mChildren.ElementAt(n); + nsCOMPtr shellAsNav(do_QueryInterface(shell)); + if(shellAsNav) + shellAsNav->Stop(); + } + + return NS_OK; } NS_IMETHODIMP nsDocShell::SetDocument(nsIDOMDocument* aDocument,