зеркало из https://github.com/mozilla/gecko-dev.git
29794: tell docshell to disable meta-refresh
This commit is contained in:
Родитель
0fc1eb458e
Коммит
9f53106968
|
@ -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)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче