Index: third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp |
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp |
index a48db458ed4bb51967503cbf6f348e91db5ef81e..61f88d8a12d0d69df4987a04dba71f722815798d 100644 |
--- a/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp |
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp |
@@ -558,7 +558,7 @@ bool IDBDatabase::hasPendingActivity() const { |
// The script wrapper must not be collected before the object is closed or |
// we can't fire a "versionchange" event to let script manually close the |
// connection. |
- return !m_closePending && hasEventListeners() && getExecutionContext(); |
+ return !m_closePending && getExecutionContext() && hasEventListeners(); |
} |
void IDBDatabase::contextDestroyed() { |