Re: [w3c/IndexedDB] treat writes to the DB that have no success handler as having called commit (Issue #482)

asutherland left a comment (w3c/IndexedDB#482)

https://w3c.github.io/IndexedDB/#fire-an-error-event marks the transaction as active, so they can issue writes, and as long as [the canceled flag is set on the event by returning false or calling preventDefault](https://dom.spec.whatwg.org/#set-the-canceled-flag) we won't abort the transaction, mooting the writes.  Also, the event explicitly bubbles (request to transaction to connection per the "get the parent" spec text).

For data gathering, I think it would be useful to know if people are adding "error" handlers on the requests; it could also be interesting to know if they are listening to the bubbling but that would be less important.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/482#issuecomment-3481107161
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/IndexedDB/issues/482/3481107161@github.com>

Received on Monday, 3 November 2025 15:25:45 UTC