Index: third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp |
diff --git a/third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp b/third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp |
index c1f8ed778c0256ec6a2f04805299c2274ecc790b..0e8cc359e32c575f7fd8b6f9394c437b65e67809 100644 |
--- a/third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp |
+++ b/third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp |
@@ -64,6 +64,7 @@ SQLTransaction::SQLTransaction(Database* db, SQLTransactionCallback* callback, |
, m_executeSqlAllowed(false) |
, m_readOnly(readOnly) |
{ |
+ DCHECK(isMainThread()); |
ASSERT(m_database); |
InspectorInstrumentation::asyncTaskScheduled(db->getExecutionContext(), "SQLTransaction", this, true); |
} |