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 350620 b35318b86b335200340aad6893828b99c187ad84
parent 350619 0de73de7aa9bc333137eafb3f219c584061b8439
child 350621 29d25f5224ad918470c049f1991628853e1831cd
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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