REGRESSION(312316@main): [macOS Debug] ASSERTION FAILED: m_customLocalStoragePath.isEmpty() == m_rootPath.isEmpty()#64119
Closed
cdumez wants to merge 1 commit into
Closed
Conversation
…lStoragePath.isEmpty() == m_rootPath.isEmpty() https://bugs.webkit.org/show_bug.cgi?id=313786 rdar://175981209 Reviewed by NOBODY (OOPS!). The assertions in resolvedLocalStoragePath(), resolvedIDBStoragePath(), and resolvedCacheStoragePath() check that `m_customStoragePath.isEmpty() == m_rootPath.isEmpty()`. This is wrong when unifiedOriginStorageLevel is None: it is valid to have custom per-type storage paths without a unified root directory, which is the entire point of UnifiedOriginStorageLevelNone with individually configured storage paths. It is unclear why these tests started failing recently and only on EWS bots (not reproducible locally or on post-commit bots) but I doubt this is caused by 312316@main since those tests do not involve extensions. Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WebsiteDataStoreCustomPaths.mm * Source/WebKit/NetworkProcess/storage/OriginStorageManager.cpp: (WebKit::OriginStorageManager::StorageBucket::resolvedLocalStoragePath): (WebKit::OriginStorageManager::StorageBucket::resolvedIDBStoragePath): (WebKit::OriginStorageManager::StorageBucket::resolvedCacheStoragePath): * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WebsiteDataStoreCustomPaths.mm: (TEST(WebKit, WebsiteDataStoreCustomPathsWithoutPrewarming)): (TEST(WebKit, WebsiteDataStoreCustomPathsWithPrewarming)):
Collaborator
|
EWS run on current version of this PR (hash d30f4a7) Details |
szewai
reviewed
May 4, 2026
Contributor
szewai
left a comment
There was a problem hiding this comment.
It is wrong to have !m_customLocalStoragePath().isEmpty() with m_rootPath.isEmpty() because when UnifiedOriginStorageLevel is None LocalStorage is stored inside m_customLocalStoragePath, and FileSystem storage is stored inside m_rootPath (FileSystem is introduced after origin directory Is added, so it uses origin directory at all unified levels).
If one of them is empty, it means one type is persisted but the other is not.
Contributor
Author
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.
d30f4a7
d30f4a7