Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e67a46f6bda40603a0297dd6eafe390c5f211f98
https://github.com/WebKit/WebKit/commit/e67a46f6bda40603a0297dd6eafe390c5f211f98
Author: Ronan Turner <[email protected]>
Date: 2026-06-10 (Wed, 10 Jun 2026)
Changed paths:
M Source/WebKit/UIProcess/WebsiteData/EnhancedSecuritySitesPersistence.cpp
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/EnhancedSecurityPolicies.mm
Log Message:
-----------
Enhanced Security sites database should gracefully handle statement failures
https://bugs.webkit.org/show_bug.cgi?id=316690
rdar://179058026
Reviewed by Adrian Taylor.
It seems possible in unusual edge cases for our table altering statements to
fail
when setting up the Enhanced Security sites database. In one edge case, we
destroyed
the database before a prepared statement causing a crash.
We should handle this more gracefully and ensure we error and close the database
cleanly.
Added an additional test that recreates this scenario.
Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/EnhancedSecurityPolicies.mm
* Source/WebKit/UIProcess/WebsiteData/EnhancedSecuritySitesPersistence.cpp:
(WebKit::EnhancedSecuritySitesPersistence::openDatabase):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/EnhancedSecurityPolicies.mm:
(TEST(EnhancedSecurityPolicies, OpenDatabaseDoesNotCrashWhenMigrationFails)):
Canonical link: https://commits.webkit.org/314921@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications