Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ActiveDOMCallback.cpp

Issue 2200263005: Remove ActiveDOMCallback::isScriptControllerTerminating (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/ActiveDOMCallback.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ActiveDOMCallback.cpp b/third_party/WebKit/Source/bindings/core/v8/ActiveDOMCallback.cpp
index b0b057be22a5d6a1ec359230ae0e08ad04a2576c..9cd11d1bb503579343666d90c37132120635639a 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ActiveDOMCallback.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ActiveDOMCallback.cpp
@@ -51,15 +51,4 @@ bool ActiveDOMCallback::canInvokeCallback() const
return context && !context->activeDOMObjectsAreSuspended() && !context->activeDOMObjectsAreStopped();
}
-bool ActiveDOMCallback::isScriptControllerTerminating() const
-{
- ExecutionContext* context = getExecutionContext();
- if (context && context->isWorkerGlobalScope()) {
- WorkerOrWorkletScriptController* scriptController = toWorkerGlobalScope(context)->scriptController();
- if (!scriptController || scriptController->isExecutionForbidden() || scriptController->isExecutionTerminating())
- return true;
- }
- return false;
-}
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698