Bug 1619307 - Fixed assertion in IDBTransaction::Run. r=dom-workers-and-storage-reviewers,janv

Differential Revision: https://phabricator.services.mozilla.com/D64984

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Simon Giesecke 2020-03-04 13:10:54 +00:00
parent fdb4e063f4
commit 963a76c6fc

View File

@ -988,7 +988,10 @@ IDBTransaction::Run() {
// abort/commit.
if (ReadyState::Finished == mReadyState) {
MOZ_ASSERT(IsAborted());
// There are three cases where mReadyState is set to Finished: In
// FileCompleteOrAbortEvents, AbortInternal and in CommitIfNotStarted. We
// shouldn't get here after CommitIfNotStarted again.
MOZ_ASSERT(mFiredCompleteOrAbort || IsAborted());
return NS_OK;
}