[IndexedDB] Reduce heed related panics (#37652)

Allows indexeddb backends to return errors on certain operations.
Currently the errors are not demarcated, as the result type is
`Result<(), ()>`. If this is not appropriate then perhaps having a
string error might be better.

Testing: Some tests might perhaps move from PANIC to FAIL
Fixes: Partially fixes a bit of #37647, more work needs to be done
however

---------

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Ashwin Naren 2025-06-24 17:22:19 -07:00 committed by GitHub
parent 72e0baa997
commit d114feb0fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 60 additions and 28 deletions

View file

@ -1,8 +1,24 @@
[list_ordering.any.worker.html]
expected: CRASH
[Validate ObjectStoreNames and indexNames list order - numbers]
expected: FAIL
[Validate ObjectStoreNames and indexNames list order - numbers 'overflow']
expected: FAIL
[Validate ObjectStoreNames and indexNames list order - lexigraphical string sort]
expected: FAIL
[list_ordering.any.html]
expected: CRASH
[Validate ObjectStoreNames and indexNames list order - numbers]
expected: FAIL
[Validate ObjectStoreNames and indexNames list order - numbers 'overflow']
expected: FAIL
[Validate ObjectStoreNames and indexNames list order - lexigraphical string sort]
expected: FAIL
[list_ordering.any.sharedworker.html]
expected: ERROR

View file

@ -2,10 +2,13 @@
expected: ERROR
[string-list-ordering.any.worker.html]
expected: CRASH
[Test string list ordering in IndexedDB]
expected: FAIL
[string-list-ordering.any.serviceworker.html]
expected: ERROR
[string-list-ordering.any.html]
expected: CRASH
[Test string list ordering in IndexedDB]
expected: FAIL