Bug 1300454 - SendAbort() to parent after IDBTransaction is aborted in INITIAL state. r=janv a=ritu
authorBevis Tseng <btseng@mozilla.com>
Tue, 04 Oct 2016 15:40:11 +0800
changeset 428773 b35318b86b335200340aad6893828b99c187ad84
parent 428772 0de73de7aa9bc333137eafb3f219c584061b8439
child 428774 29d25f5224ad918470c049f1991628853e1831cd
push id33416
push userpaul@paul.cx
push dateMon, 24 Oct 2016 16:26:20 +0000
reviewersjanv, ritu
bugs1300454
milestone50.0
Bug 1300454 - SendAbort() to parent after IDBTransaction is aborted in INITIAL state. r=janv a=ritu
dom/indexedDB/IDBTransaction.cpp
--- a/dom/indexedDB/IDBTransaction.cpp
+++ b/dom/indexedDB/IDBTransaction.cpp
@@ -634,17 +634,17 @@ IDBTransaction::AbortInternal(nsresult a
   AssertIsOnOwningThread();
   MOZ_ASSERT(NS_FAILED(aAbortCode));
   MOZ_ASSERT(!IsCommittingOrDone());
 
   RefPtr<DOMError> error = aError;
 
   const bool isVersionChange = mMode == VERSION_CHANGE;
   const bool isInvalidated = mDatabase->IsInvalidated();
-  bool needToSendAbort = mReadyState == INITIAL && !isInvalidated;
+  bool needToSendAbort = mReadyState == INITIAL;
 
   mAbortCode = aAbortCode;
   mReadyState = DONE;
   mError = error.forget();
 
   if (isVersionChange) {
     // If a version change transaction is aborted, we must revert the world
     // back to its previous state unless we're being invalidated after the