-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New-Test(302373@main): ASSERTION FAILED: !(blobSize % sizeof(T)) on TestWebKitAPI.IndexedDB.OpenDatabaseWithMismatchedMetadataVersionAndName #56545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cdumez
wants to merge
1
commit into
WebKit:main
Choose a base branch
from
cdumez:301776_IDB_Database_name_crash
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+1
−7
Conversation
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
Collaborator
|
EWS run on previous version of this PR (hash ad6adbf) Details |
szewai
approved these changes
Jan 14, 2026
ad6adbf to
74deb04
Compare
Collaborator
|
EWS run on previous version of this PR (hash 74deb04) Details |
…estWebKitAPI.IndexedDB.OpenDatabaseWithMismatchedMetadataVersionAndName https://bugs.webkit.org/show_bug.cgi?id=301776 rdar://163819252 Reviewed by NOBODY (OOPS!). The test case is covering a case where the user has an IDB database whose IDB version is 2 but is still using the old encoding for Strings (due to a bug we had in WebKit for a while). In this case, it tries to read the database name string in the new format and gets "garbage" and then later compared it with the expected name and if it doesn't match, there is logic to handle the migration. The issue is that there is a debug assertion in sqliteColumnBlob() which hits in debug when trying to read the database name in the new format (which doesn't match the format on disk). Since this is expected in this case, I am replacing the debug assertion with an `if` check which returns an empty span in this case (which is strictly better than returning "garbage") and it will keep the database upgrade logic working as intended. Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/IndexedDBFileName.mm * Source/WebCore/platform/sql/SQLiteExtras.h: (WebCore::sqliteColumnBlob): * Tools/TestWebKitAPI/Tests/WebKitCocoa/IndexedDBFileName.mm: (TEST(IndexedDB, OpenDatabaseWithMismatchedMetadataVersionAndName)):
74deb04 to
ea63bdf
Compare
Collaborator
|
EWS run on current version of this PR (hash ea63bdf) Details |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
safe-merge-queue
Applied to automatically send a pull-request to merge-queue after passing EWS checks
Website Storage
Bugs related to storage APIs, including IndexedDB and localStorage
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.
🛠 mac-apple
ea63bdf
ea63bdf