Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9bb29113a20a4a94504135dbe4c6412287602676
https://github.com/WebKit/WebKit/commit/9bb29113a20a4a94504135dbe4c6412287602676
Author: David Kilzer <[email protected]>
Date: 2026-01-19 (Mon, 19 Jan 2026)
Changed paths:
M Source/WebKit/UIProcess/Cocoa/WebPreferencesCocoa.mm
M Tools/TestWebKitAPI/Tests/WebKitCocoa/WKPreferences.mm
Log Message:
-----------
Safari crashes in WebPreferences::platformGetUInt32UserValueForKey due to
checked_objc_cast type assertion failure
<https://bugs.webkit.org/show_bug.cgi?id=305728>
<rdar://168370261>
Reviewed by Chris Dumez.
Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/WKPreferences.mm
* Source/WebKit/UIProcess/Cocoa/WebPreferencesCocoa.mm:
(WebKit::WebPreferences::platformGetUInt32UserValueForKey):
- Change checked_objc_cast<NSNumber>() to dynamic_objc_cast<NSNumber>()
to fix the crash.
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WKPreferences.mm:
(TestWebKitAPI.WKPreferences.UInt32TypeMismatchDoesNotCrash): Add.
- Add test that crashes before the fix.
Canonical link: https://commits.webkit.org/305850@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications