Index: third_party/WebKit/Source/core/workers/WorkerGlobalScope.h |
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h |
index 9e3e4125f5ecdc0a662efa310ee6852954f9d6c0..25a598444190d874e4c0125d645dfc13e6a0cb7b 100644 |
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h |
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h |
@@ -27,6 +27,7 @@ |
#ifndef WorkerGlobalScope_h |
#define WorkerGlobalScope_h |
+#include "bindings/core/v8/ActiveScriptWrappable.h" |
#include "bindings/core/v8/V8CacheOptions.h" |
#include "bindings/core/v8/WorkerOrWorkletScriptController.h" |
#include "core/CoreExport.h" |
@@ -56,7 +57,7 @@ class WorkerLocation; |
class WorkerNavigator; |
class WorkerThread; |
-class CORE_EXPORT WorkerGlobalScope : public EventTargetWithInlineData, public SecurityContext, public WorkerOrWorkletGlobalScope, public Supplementable<WorkerGlobalScope>, public DOMWindowBase64 { |
+class CORE_EXPORT WorkerGlobalScope : public EventTargetWithInlineData, public ActiveScriptWrappable, public SecurityContext, public WorkerOrWorkletGlobalScope, public Supplementable<WorkerGlobalScope>, public DOMWindowBase64 { |
DEFINE_WRAPPERTYPEINFO(); |
USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScope); |
public: |
@@ -97,6 +98,9 @@ public: |
v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationContext) final; |
v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const WrapperTypeInfo*, v8::Local<v8::Object> wrapper) final; |
+ // ActiveScriptWrappable |
+ bool hasPendingActivity() const override; |
+ |
// ExecutionContext |
bool isWorkerGlobalScope() const final { return true; } |
bool isJSExecutionForbidden() const final; |