Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7b803b478d22d7cf544ffa69c5d7e84ebb7661ec
https://github.com/WebKit/WebKit/commit/7b803b478d22d7cf544ffa69c5d7e84ebb7661ec
Author: David Kilzer <[email protected]>
Date: 2026-01-28 (Wed, 28 Jan 2026)
Changed paths:
M Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.mm
Log Message:
-----------
Restrict WebKit1 OS Fault Logging to Internal Builds Only
<https://bugs.webkit.org/show_bug.cgi?id=306482>
<rdar://166773682>
Reviewed by Tim Horton.
The function `shouldOSFaultLogForAppleApplicationUsingWebKit1()` was
logging OS faults for Apple applications using WebKit1 on all builds.
This generates unnecessary logging on customer devices.
The fix adds a static check for internal builds using
`os_variant_allows_internal_security_policies("com.apple.WebKit")`
at the start of the function. If not running on an internal build,
the function returns false immediately, preventing OS fault logging.
This approach follows existing WebKit patterns used in other functions
like `InspectorFrontendHost::engineeringSettingsAllowed()` and
`RemoteInspectionTarget::allowsInspectionByPolicy()`.
No new tests since this change is not directly testable.
* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.mm:
(WTF::CocoaApplication::shouldOSFaultLogForAppleApplicationUsingWebKit1):
Canonical link: https://commits.webkit.org/306388@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications