Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 14c45011e5296bfd300b40c8abaa9ffd740e4348
https://github.com/WebKit/WebKit/commit/14c45011e5296bfd300b40c8abaa9ffd740e4348
Author: Darryl Parkinson <[email protected]>
Date: 2026-01-29 (Thu, 29 Jan 2026)
Changed paths:
M Source/WebKit/UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Source/WebKit/UIProcess/WebProcessPool.cpp
M Tools/TestWebKitAPI/Tests/WebKitCocoa/EnhancedSecurity.mm
M Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm
Log Message:
-----------
REGRESSION(304044@main): ProcessSwap API tests fail when opting out of
Lockdown Mode
rdar://168768019
Reviewed by Per Arne Vollan.
When apps opt out of Lockdown Mode while system Lockdown Mode is enabled, the
fallback
now uses EnhancedSecurity mode. Without the fix, the enable-enhanced-security
bootstrap
message was not being sent, so disableJIT() was never called.
Without the bootstrap message, _isJITEnabled returned true on public macOS
builds
where the entitlement check is compiled out but worked correctly on internal
builds.
The fix ensures the enable-enhanced-security bootstrap message is correctly
sent when
the fallback is triggered.
Updated the ProcessSwap tests to expect JIT disabled and added EnhancedSecurity
tests
that verify isEnhancedSecurityEnabled returns true and the process variant is
"security".
* Source/WebKit/UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm:
(WebKit::serviceNameAndIdentifier):
(WebKit::webContentServiceName):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::currentEnhancedSecurityState const):
* Source/WebKit/UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::createWebPage):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/EnhancedSecurity.mm:
(TestWebKitAPI::TEST(EnhancedSecurity,
SystemLockdownModeEnablesEnhancedSecurityWhenLockdownOptsOut)):
(TestWebKitAPI::TEST(EnhancedSecurity,
SystemLockdownModeEnablesEnhancedSecurityWhenSecurityRestrictionModeNone)):
(TestWebKitAPI::TEST(EnhancedSecurity,
SystemLockdownModeEnablesEnhancedSecurityWhenBothAPIOptsOut)):
(TestWebKitAPI::TEST(EnhancedSecurity,
SystemLockdownModeEnablesEnhancedSecurityWhenMaximizeCompatibilitySet)):
(TestWebKitAPI::TEST(EnhancedSecurity,
SystemLockdownModeEnablesEnhancedSecurityWhenAPIOptsOut)): Deleted.
* Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
((ProcessSwap, COEPProcessSwapOnSiteWhereLockdownModeIsDisabled)):
((ProcessSwap,
LockdownModeSystemSettingChangeDoesNotReloadViewsWhenModeIsSetExplicitly2)):
((ProcessSwap,
LockdownModeSystemSettingChangeDoesNotReloadViewsWhenModeIsSetExplicitly4)):
Canonical link: https://commits.webkit.org/306409@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications