New issue
Advanced search Search tips
Starred by 1 user

Issue metadata

Status: Fixed
Closed: Jan 24
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug

Sign in to add a comment

Issue 911877: IndexedDB commit() doesn't abort on request errors

Reported by, Dec 5 Project Member

Issue description

IDBTransasction.commit() should abort the transaction if there are any request errors. Currently this doesn't happen if the error is hanlded on the request, and probably doesn't happen in the 'shutdown' 'abortalltransactions' optimization.

I'll be uploading a WPT test for the first case.

Comment 1 by, Dec 7

Project Member
The following revision refers to this bug:

commit b0bd6d5bc0487315bdc89ba96df55b318cadc7b6
Author: Daniel Murphy <>
Date: Fri Dec 07 01:00:31 2018

[IndexedDB] Testing ordering and error handling for transaction.commit

* Tests that transaction ordering is consistent, even if a transaction
  calls commit().
* Tests that request errors cause a commit()-ed transaction to abort.

The second case seems to be broken in our implementation.,

Bug:  911877 
Change-Id: I47da6ce9d350f6c47afcd02cf808d4fefb5f013f
Commit-Queue: Daniel Murphy <>
Reviewed-by: Chase Phillips <>
Reviewed-by: Victor Costan <>
Cr-Commit-Position: refs/heads/master@{#614512}

Comment 2 by bugdroid, Jan 24

Project Member
The following revision refers to this bug:

commit c3a88aa79d8710f81cc84679f7c7eaa1e6326100
Author: Andreas Butler <>
Date: Thu Jan 24 19:42:46 2019

[IndexedDB]: Explicit commit error timing handling.

When a transaction is explicitly committed, there may yet be unhandled
errors that the browser has sent but the renderer has not yet seen. This
can cause strange behaviour (see the Github discussion link below). This
patch keeps track of the 'handled errors' in the renderer and the 'sent
errors' in the backend. The 'handled errors' number is sent when the
transaction is explicitly committed, and the browser can compare this
with the 'sent errors'. If they don't match, the transaction is aborted

GitHub Discussion:

Bug:  911877 
Change-Id: I7ea7b9e20c70528de3f363e961f87a3d8f5798d3
Reviewed-by: Kinuko Yasuda <>
Reviewed-by: Chase Phillips <>
Reviewed-by: Daniel Murphy <>
Commit-Queue: Andreas Butler <>
Cr-Commit-Position: refs/heads/master@{#625780}

Comment 3 by, Jan 24

Status: Fixed (was: Assigned)

Sign in to add a comment