29794: tell docshell to disable meta-refresh

This commit is contained in:
akkana%netscape.com 2000-04-14 21:19:44 +00:00
parent 0fc1eb458e
commit 9f53106968
2 changed files with 14 additions and 4 deletions

View File

@ -86,6 +86,8 @@
#include "nsIDocShellTreeNode.h"
#include "nsITransactionManager.h"
#include "nsIRefreshURI.h"
///////////////////////////////////////
// Editor Includes
///////////////////////////////////////
@ -4012,12 +4014,15 @@ nsEditorShell::OnStartDocumentLoad(nsIDocumentLoader* loader, nsIURI* aURL, cons
nsCOMPtr<nsIScriptContext> scriptContext;
sgo->GetContext(getter_AddRefs(scriptContext));
if (scriptContext)
{
scriptContext->SetScriptsEnabled(PR_FALSE);
}
}
}
// Disable meta-refresh
nsCOMPtr<nsIRefreshURI> refreshURI = do_QueryInterface(mDocShell);
if (refreshURI)
refreshURI->CancelRefreshURITimers();
// set up a parser observer
if (!mParserObserver)
{

View File

@ -86,6 +86,8 @@
#include "nsIDocShellTreeNode.h"
#include "nsITransactionManager.h"
#include "nsIRefreshURI.h"
///////////////////////////////////////
// Editor Includes
///////////////////////////////////////
@ -4012,12 +4014,15 @@ nsEditorShell::OnStartDocumentLoad(nsIDocumentLoader* loader, nsIURI* aURL, cons
nsCOMPtr<nsIScriptContext> scriptContext;
sgo->GetContext(getter_AddRefs(scriptContext));
if (scriptContext)
{
scriptContext->SetScriptsEnabled(PR_FALSE);
}
}
}
// Disable meta-refresh
nsCOMPtr<nsIRefreshURI> refreshURI = do_QueryInterface(mDocShell);
if (refreshURI)
refreshURI->CancelRefreshURITimers();
// set up a parser observer
if (!mParserObserver)
{