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.
This commit is contained in:
mscott%netscape.com 1999-11-30 22:15:35 +00:00
Родитель 95c9f7b598
Коммит a41c25650e
2 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -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!

Просмотреть файл

@ -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!