Switch indexeddb backend to sqlite and improve IPC messaging (#38187)

- Use sqlite instead of heed. (one indexed database = one sqlite
database)
- Implement the backend for indexes
- Use keyranges where needed (as specified by the spec)
- Implement `getKey`
- Fix channel error messaging (led to a bunch of changes to how async
requests are handled)

Note: `components/net/indexeddb/engines/sqlite/serialize.rs` is unused;
I can delete it if needed.

Testing: Switching to sqlite eliminated many panics (exposing some new
failures).
Fixes: #38040

---------

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
Ashwin Naren 2025-08-16 00:27:17 -07:00 committed by GitHub
parent f4bbdf8010
commit fc3feceee5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
59 changed files with 2002 additions and 818 deletions

View file

@ -122,6 +122,27 @@
[Date: Sat Nov 20 2286 09:46:40 GMT-0800 (Pacific Standard Time)]
expected: FAIL
[Date: Thu Jan 01 1970 05:29:59 GMT+0530 (India Standard Time)]
expected: FAIL
[Date: Thu Jan 01 1970 05:30:00 GMT+0530 (India Standard Time)]
expected: FAIL
[Date: Thu Jan 01 1970 05:30:01 GMT+0530 (India Standard Time)]
expected: FAIL
[Date: Thu Jan 01 1970 05:46:40 GMT+0530 (India Standard Time)]
expected: FAIL
[Date: Mon Jan 12 1970 19:16:40 GMT+0530 (India Standard Time)]
expected: FAIL
[Date: Sun Sep 09 2001 07:16:40 GMT+0530 (India Standard Time)]
expected: FAIL
[Date: Sat Nov 20 2286 23:16:40 GMT+0530 (India Standard Time)]
expected: FAIL
[structured-clone.any.html?81-100]
[Uint16Array: 0,1,65534,65535]
@ -418,6 +439,18 @@
[Date: Wed Dec 31 1969 15:43:20 GMT-0800 (Pacific Standard Time)]
expected: FAIL
[Date: Mon Feb 10 1653 12:06:48 GMT+0553 (India Standard Time)]
expected: FAIL
[Date: Mon Apr 25 1938 03:43:20 GMT+0530 (India Standard Time)]
expected: FAIL
[Date: Sat Dec 20 1969 15:43:20 GMT+0530 (India Standard Time)]
expected: FAIL
[Date: Thu Jan 01 1970 05:13:20 GMT+0530 (India Standard Time)]
expected: FAIL
[structured-clone.any.worker.html?41-60]
[Number: 0]
@ -516,6 +549,18 @@
[Date: Wed Dec 31 1969 15:43:20 GMT-0800 (Pacific Standard Time)]
expected: FAIL
[Date: Mon Feb 10 1653 12:06:48 GMT+0553 (India Standard Time)]
expected: FAIL
[Date: Mon Apr 25 1938 03:43:20 GMT+0530 (India Standard Time)]
expected: FAIL
[Date: Sat Dec 20 1969 15:43:20 GMT+0530 (India Standard Time)]
expected: FAIL
[Date: Thu Jan 01 1970 05:13:20 GMT+0530 (India Standard Time)]
expected: FAIL
[structured-clone.any.html?61-80]
[Date: Wed Dec 31 1969 23:59:59 GMT+0000 (Coordinated Universal Time)]
@ -641,6 +686,27 @@
[Date: Sat Nov 20 2286 09:46:40 GMT-0800 (Pacific Standard Time)]
expected: FAIL
[Date: Thu Jan 01 1970 05:29:59 GMT+0530 (India Standard Time)]
expected: FAIL
[Date: Thu Jan 01 1970 05:30:00 GMT+0530 (India Standard Time)]
expected: FAIL
[Date: Thu Jan 01 1970 05:30:01 GMT+0530 (India Standard Time)]
expected: FAIL
[Date: Thu Jan 01 1970 05:46:40 GMT+0530 (India Standard Time)]
expected: FAIL
[Date: Mon Jan 12 1970 19:16:40 GMT+0530 (India Standard Time)]
expected: FAIL
[Date: Sun Sep 09 2001 07:16:40 GMT+0530 (India Standard Time)]
expected: FAIL
[Date: Sat Nov 20 2286 23:16:40 GMT+0530 (India Standard Time)]
expected: FAIL
[structured-clone.any.html?1-20]
[undefined: undefined]