Repository navigation
script: Close open IndexedDB databases when tearing down a Document - #46636
Merged
Merged
Conversation
|
🔨 Triggering try run (#29694366207) for Linux (WPT) |
|
|
When tearing down a `Document` (when it's garbage collected), close any open databases and ensure all upgrade transactions are aborted. The second thing should likely happen as part of database closing, but this is a transitional step toward matching the specification more closely. This is important, because when running the IndexedDB test suite lingering open connections on the backend can interfere with other tests. Also, not doing this essentially leaks open connections. Signed-off-by: Martin Robinson <[email protected]>
mrobinson
force-pushed
the
close-database-on-teardown
branch
from
July 19, 2026 16:16
41700ad to
66582b7
Compare
Member
Author
|
With this and #46615 applied, I essentially no longer have flakiness when running the IndexedDB suite locally. |
|
🔨 Triggering try run (#29694653762) for Linux (WPT) |
|
Test results for linux-wpt from try job (#29694653762): Flaky unexpected result (44)
Stable unexpected results that are known to be intermittent (17)
|
|
✨ Try run (#29694653762) succeeded. |
Taym95
approved these changes
Jul 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When tearing down a
Document(when it's garbage collected), close anyopen databases and ensure all upgrade transactions are aborted. The
second thing should likely happen as part of database closing, but this
is a transitional step toward matching the specification more closely.
This is important, because when running the IndexedDB test suite
lingering open connections on the backend can interfere with other
tests. Also, not doing this essentially leaks open connections.
Testing: This fixes flakiness when running the IndexedDB suite locally for me.