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

Unified Diff: third_party/WebKit/Source/modules/fetch/Body.cpp

Issue 2367753002: Reland of Clear LifecycleObserver::m_context when LifecycleObserver::contextDestroyed gets called (Closed)
Patch Set: Created 4 years, 3 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 e23e91a5a9c58d55e2a2340e74e10b18f695ddc4..995ec34f736ff89737033dddb541a2bb87746123 100644
--- a/third_party/WebKit/Source/modules/fetch/Body.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Body.cpp
@@ -211,7 +211,7 @@
bool Body::hasPendingActivity() const
{
- if (getExecutionContext()->activeDOMObjectsAreStopped())
+ if (!getExecutionContext() || getExecutionContext()->activeDOMObjectsAreStopped())
return false;
if (!bodyBuffer())
return false;

Powered by Google App Engine
This is Rietveld 408576698