Skip to content

IndexedDB: Use GenericSender, GenericReceiver and GenericCallback for IndexedDB#41031

Merged
jdm merged 2 commits intoservo:mainfrom
Narfinger:indexeddb-generic
Dec 4, 2025
Merged

IndexedDB: Use GenericSender, GenericReceiver and GenericCallback for IndexedDB#41031
jdm merged 2 commits intoservo:mainfrom
Narfinger:indexeddb-generic

Conversation

@Narfinger
Copy link
Copy Markdown
Contributor

Moving IndexedDB to use the generic channel methods.

Of note is the change in 'IDBRequest::execute_async'. This method previously added a channel that was constructed from the callsite in put into the AsyncOperation. Now we do not take a function but take a 'FnOnce(GenericCallback<BackendResult>) -> AsyncOperation'. With this the callsite can construct the AsyncOperation to give in the 'IndexedDBThreadMsg::Async'.

The rest are mostly just type changes.

Signed-off-by: Narfinger [email protected]

Testing: WPT tests on the IndexedDB subset still pass.

@Narfinger Narfinger requested a review from gterzian as a code owner December 3, 2025 13:45
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 3, 2025
@Narfinger Narfinger changed the title Use GenericSender, GenericReceiver and GenericCallback for IndexedDB IndexedDB: Use GenericSender, GenericReceiver and GenericCallback for IndexedDB Dec 3, 2025
@codecov-commenter
Copy link
Copy Markdown

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

Signed-off-by: Narfinger <[email protected]>
Copy link
Copy Markdown
Member

@jdm jdm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Dec 4, 2025
@jdm jdm added this pull request to the merge queue Dec 4, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 4, 2025
Merged via the queue into servo:main with commit a841eb4 Dec 4, 2025
29 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 4, 2025
@Narfinger Narfinger deleted the indexeddb-generic branch December 4, 2025 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants