From c45d366abf80dcbf6ea98b5c56ed9c08aaa55e22 Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Tue, 30 Nov 1999 22:15:35 +0000 Subject: [PATCH] fix back and forward buttons when using uri dispatching. When we're about to call into the uri loader, set the mLoadingDocument flag on the doc loader to true. git-svn-id: svn://10.0.0.236/trunk@54775 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/uriloader/base/nsDocLoader.cpp | 8 ++++++++ mozilla/webshell/src/nsDocLoader.cpp | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/mozilla/uriloader/base/nsDocLoader.cpp b/mozilla/uriloader/base/nsDocLoader.cpp index ec7eeb75ce6..8dcb3ea5692 100644 --- a/mozilla/uriloader/base/nsDocLoader.cpp +++ b/mozilla/uriloader/base/nsDocLoader.cpp @@ -573,6 +573,14 @@ nsDocLoaderImpl::LoadDocument(nsIURI * aUri, NS_WITH_SERVICE(nsIURILoader, pURILoader, kURILoaderCID, &rv); if (NS_SUCCEEDED(rv)) { + + /* + * Set the flag indicating that the document loader is in the process of + * loading a document. This flag will remain set until the + * OnConnectionsComplete(...) notification is fired for the loader... + */ + mIsLoadingDocument = PR_TRUE; + // temporary hack for post data...eventually this snippet of code // should be moved into the layout call when callers go through the // uri loader directly! diff --git a/mozilla/webshell/src/nsDocLoader.cpp b/mozilla/webshell/src/nsDocLoader.cpp index ec7eeb75ce6..8dcb3ea5692 100644 --- a/mozilla/webshell/src/nsDocLoader.cpp +++ b/mozilla/webshell/src/nsDocLoader.cpp @@ -573,6 +573,14 @@ nsDocLoaderImpl::LoadDocument(nsIURI * aUri, NS_WITH_SERVICE(nsIURILoader, pURILoader, kURILoaderCID, &rv); if (NS_SUCCEEDED(rv)) { + + /* + * Set the flag indicating that the document loader is in the process of + * loading a document. This flag will remain set until the + * OnConnectionsComplete(...) notification is fired for the loader... + */ + mIsLoadingDocument = PR_TRUE; + // temporary hack for post data...eventually this snippet of code // should be moved into the layout call when callers go through the // uri loader directly!