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

Unified Diff: Source/modules/indexeddb/IDBTransaction.cpp

Issue 213073004: Protecting against other possible uses of invalid V8 execution context. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Noted in description that fix is speculative. Created 6 years, 9 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
« no previous file with comments | « Source/modules/indexeddb/IDBDatabase.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBTransaction.cpp
diff --git a/Source/modules/indexeddb/IDBTransaction.cpp b/Source/modules/indexeddb/IDBTransaction.cpp
index 35d7012ad26e1dae06b228e50176e0117f6af0b9..19301176e90ae79ad9c63fda5be9c8f86dfaefd8 100644
--- a/Source/modules/indexeddb/IDBTransaction.cpp
+++ b/Source/modules/indexeddb/IDBTransaction.cpp
@@ -341,6 +341,10 @@ ExecutionContext* IDBTransaction::executionContext() const
bool IDBTransaction::dispatchEvent(PassRefPtr<Event> event)
{
IDB_TRACE("IDBTransaction::dispatchEvent");
+ if (m_contextStopped || !executionContext()) {
+ m_state = Finished;
+ return false;
+ }
ASSERT(m_state != Finished);
ASSERT(m_hasPendingActivity);
ASSERT(executionContext());
« no previous file with comments | « Source/modules/indexeddb/IDBDatabase.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698