Permalink
Browse files

Stop now has an implementation. Not yet called.

  • Loading branch information...
1 parent 592a522 commit ce4cfbc25b316877a2b5343466ffb66100b6bd0f tbogard%aol.net committed Feb 14, 2000
Showing with 21 additions and 3 deletions.
  1. +21 −3 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<nsIURILoader> 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<nsIWebNavigation> shellAsNav(do_QueryInterface(shell));
+ if(shellAsNav)
+ shellAsNav->Stop();
+ }
+
+ return NS_OK;
}
NS_IMETHODIMP nsDocShell::SetDocument(nsIDOMDocument* aDocument,

0 comments on commit ce4cfbc

Please sign in to comment.