indexeddb: Implement getAll and getAllKeys (#38885)

Implement getAll and getAllKeys for IDBObjectStore.

Testing: WPT & Unit testing
Fixes: Part of #6963.

---------

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
Ashwin Naren 2025-09-05 22:48:11 -07:00 committed by GitHub
parent e64c53972a
commit b5d6555238
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 308 additions and 86 deletions

View file

@ -12,12 +12,6 @@
[Cross-realm IDBObjectStore::clear() method from detached <iframe> works as expected]
expected: FAIL
[Cross-realm IDBObjectStore::getAll() method from detached <iframe> works as expected]
expected: FAIL
[Cross-realm IDBObjectStore::getAllKeys() method from detached <iframe> works as expected]
expected: FAIL
[Cross-realm IDBObjectStore::count() method from detached <iframe> works as expected]
expected: FAIL

View file

@ -2,15 +2,9 @@
[IDBObjectStore.get exception order: TransactionInactiveError vs. DataError]
expected: FAIL
[IDBObjectStore.getAll exception order: InvalidStateError vs. TransactionInactiveError]
expected: FAIL
[IDBObjectStore.getAll exception order: TransactionInactiveError vs. DataError]
expected: FAIL
[IDBObjectStore.getAllKeys exception order: InvalidStateError vs. TransactionInactiveError]
expected: FAIL
[IDBObjectStore.getAllKeys exception order: TransactionInactiveError vs. DataError]
expected: FAIL
@ -37,15 +31,9 @@
[IDBObjectStore.get exception order: TransactionInactiveError vs. DataError]
expected: FAIL
[IDBObjectStore.getAll exception order: InvalidStateError vs. TransactionInactiveError]
expected: FAIL
[IDBObjectStore.getAll exception order: TransactionInactiveError vs. DataError]
expected: FAIL
[IDBObjectStore.getAllKeys exception order: InvalidStateError vs. TransactionInactiveError]
expected: FAIL
[IDBObjectStore.getAllKeys exception order: TransactionInactiveError vs. DataError]
expected: FAIL

View file

@ -11,12 +11,6 @@
[IDBObjectStore interface: attribute indexNames]
expected: FAIL
[IDBObjectStore interface: operation getAll(optional any, optional unsigned long)]
expected: FAIL
[IDBObjectStore interface: operation getAllKeys(optional any, optional unsigned long)]
expected: FAIL
[IDBObjectStore interface: operation openCursor(optional any, optional IDBCursorDirection)]
expected: FAIL
@ -127,12 +121,6 @@
[IDBObjectStore interface: attribute indexNames]
expected: FAIL
[IDBObjectStore interface: operation getAll(optional any, optional unsigned long)]
expected: FAIL
[IDBObjectStore interface: operation getAllKeys(optional any, optional unsigned long)]
expected: FAIL
[IDBObjectStore interface: operation openCursor(optional any, optional IDBCursorDirection)]
expected: FAIL