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

Unified Diff: third_party/WebKit/Source/modules/fetch/Body.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/modules/fetch/Body.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Body.cpp b/third_party/WebKit/Source/modules/fetch/Body.cpp
index ad7a829596abd4d44f99318530c6653bcc50f67f..9bdb01d3619d8a66055a8196a5a19fc9f5e82bab 100644
--- a/third_party/WebKit/Source/modules/fetch/Body.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Body.cpp
@@ -92,8 +92,7 @@ class BodyJsonConsumer final : public BodyConsumerBase {
: BodyConsumerBase(resolver) {}
void didFetchDataLoadedString(const String& string) override {
- if (!resolver()->getExecutionContext() ||
- resolver()->getExecutionContext()->activeDOMObjectsAreStopped())
+ if (!resolver()->getExecutionContext())
return;
ScriptState::Scope scope(resolver()->getScriptState());
v8::Isolate* isolate = resolver()->getScriptState()->isolate();
@@ -217,8 +216,7 @@ bool Body::isBodyLocked() {
}
bool Body::hasPendingActivity() const {
- if (!getExecutionContext() ||
- getExecutionContext()->activeDOMObjectsAreStopped())
+ if (!getExecutionContext())
return false;
if (!bodyBuffer())
return false;

Powered by Google App Engine
This is Rietveld 408576698