29794: tell docshell to disable meta-refresh

This commit is contained in:
akkana%netscape.com 2000-04-14 21:19:44 +00:00
Родитель 0fc1eb458e
Коммит 9f53106968
2 изменённых файлов: 14 добавлений и 4 удалений

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

@ -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)
{

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

@ -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)
{