diff options
Diffstat (limited to 'WebCore/bindings/js/WorkerScriptController.h')
-rw-r--r-- | WebCore/bindings/js/WorkerScriptController.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/WebCore/bindings/js/WorkerScriptController.h b/WebCore/bindings/js/WorkerScriptController.h index c820cd9..38c3c30 100644 --- a/WebCore/bindings/js/WorkerScriptController.h +++ b/WebCore/bindings/js/WorkerScriptController.h @@ -52,6 +52,9 @@ namespace WebCore { JSWorkerContext* workerContextWrapper() { + if (m_executionForbidden) + return 0; + initScriptIfNeeded(); return m_workerContextWrapper; } @@ -61,7 +64,8 @@ namespace WebCore { void setException(ScriptValue); - void forbidExecution(); + enum ForbidExecutionOption { TerminateRunningScript, LetRunningScriptFinish }; + void forbidExecution(ForbidExecutionOption); JSC::JSGlobalData* globalData() { return m_globalData.get(); } |