Index: third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp |
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp |
index 0ed096e256de9294fdcf7e1ea5b99ca237af376c..42874b9ab8c6a4e1562c93a5f9f06cc6b24806a6 100644 |
--- a/third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp |
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp |
@@ -29,16 +29,9 @@ void IDBObserver::observe(IDBDatabase* database, |
IDBTransaction* transaction, |
const IDBObserverInit& options, |
ExceptionState& exception_state) { |
- if (transaction->IsFinished() || transaction->IsFinishing()) { |
- exception_state.ThrowDOMException( |
- kTransactionInactiveError, |
- IDBDatabase::kTransactionFinishedErrorMessage); |
- return; |
- } |
if (!transaction->IsActive()) { |
- exception_state.ThrowDOMException( |
- kTransactionInactiveError, |
- IDBDatabase::kTransactionInactiveErrorMessage); |
+ exception_state.ThrowDOMException(kTransactionInactiveError, |
+ transaction->InactiveErrorMessage()); |
return; |
} |
if (transaction->IsVersionChange()) { |