Skip to content

Commit

Permalink
[IndexedDB]: Add commit check to aborting txns.
Browse files Browse the repository at this point in the history
A check is added to ensure that transactions that have already been sent
a commit signal from the front end (for whatever reason) are committed
instead of aborted in the event of an abort.

Spec Change: w3c/IndexedDB#242

Explainer: https://andreas-butler.github.io/idb-transaction-commit/EXPLAINER
Change-Id: I942136c1bbfb8a5347bf7cf1f9702f5cbff66521
Reviewed-on: https://chromium-review.googlesource.com/c/1330692
Commit-Queue: Andreas Butler <andreasbutler@google.com>
Reviewed-by: Victor Costan <pwnall@chromium.org>
Reviewed-by: Daniel Murphy <dmurph@chromium.org>
Reviewed-by: Chase Phillips <cmp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#619859}
  • Loading branch information
andreas-butler authored and chromium-wpt-export-bot committed Jan 4, 2019
1 parent 71e901c commit 6d9079e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions IndexedDB/keypath-special-identifiers.htm
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
const result = request.result;
assert_key_equals(result[testcase.property], key,
'Property should be used as key');
});
tx.oncomplete = t.step_func(function() {
t.done();
});
},
Expand Down

0 comments on commit 6d9079e

Please sign in to comment.