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

Unified Diff: third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp

Issue 2571193002: Signal no pending activity in destructed contexts. (Closed)
Patch Set: Created 4 years 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/imagecapture/ImageCapture.cpp
diff --git a/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp b/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp
index e843453817875b3eba3ce73260d99be5fc2c060c..1c2b684c8afbe32b6ec8ed3ac8244b1718eebe4b 100644
--- a/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp
+++ b/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp
@@ -87,7 +87,7 @@ ExecutionContext* ImageCapture::getExecutionContext() const {
}
bool ImageCapture::hasPendingActivity() const {
- return hasEventListeners();
+ return getExecutionContext() && hasEventListeners();
}
void ImageCapture::contextDestroyed() {

Powered by Google App Engine
This is Rietveld 408576698