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

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

Issue 2433773006: Remove ExecutionContext::activeDOMObjectsAreStopped()
Patch Set: Created 4 years, 2 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/ScriptPromiseResolver.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.cpp
index 129a190f6969e41815f1454aaf41883ed0f24bf9..be9ba04243f76de9fadbec69c7e83679ce2e0c8c 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.cpp
@@ -19,10 +19,6 @@ ScriptPromiseResolver::ScriptPromiseResolver(ScriptState* scriptState)
m_isPromiseCalled(false)
#endif
{
- if (getExecutionContext()->activeDOMObjectsAreStopped()) {
- m_state = Detached;
- m_resolver.clear();
- }
InspectorInstrumentation::asyncTaskScheduled(getExecutionContext(), "Promise",
this);
}

Powered by Google App Engine
This is Rietveld 408576698