Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5d96852ac2b90a5ce465e91e268f6cb9599bfba0
      
https://github.com/WebKit/WebKit/commit/5d96852ac2b90a5ce465e91e268f6cb9599bfba0
  Author: Darryl Parkinson <[email protected]>
  Date:   2025-10-24 (Fri, 24 Oct 2025)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferences.h
    M Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferences.mm
    M Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferencesPrivate.h
    M Source/WebKit/UIProcess/API/Swift/WebPage+NavigationPreferences.swift
    M Tools/MiniBrowser/mac/WK2BrowserWindowController.m
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/EnhancedSecurity.mm
    M Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm

  Log Message:
  -----------
  Add securityRestrictionMode API and User Default for Enhanced Security
https://bugs.webkit.org/show_bug.cgi?id=301382
rdar://163298679

Reviewed by Per Arne Vollan.

Introduces public securityRestrictionMode property to replace the deprecated
_enhancedSecurityEnabled SPI. Adds WKSecurityRestrictionMode User Default
to globally enable/disable the feature for testing.

Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/EnhancedSecurity.mm

* Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferences.h:
* Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferences.mm:
(isEnhancedSecurityFeatureEnabled):
(-[WKWebpagePreferences _setEnhancedSecurityEnabled:]):
(-[WKWebpagePreferences _enhancedSecurityEnabled]):
(-[WKWebpagePreferences setSecurityRestrictionMode:]):
(-[WKWebpagePreferences securityRestrictionMode]):
* Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferencesPrivate.h:
* Source/WebKit/UIProcess/API/Swift/WebPage+NavigationPreferences.swift:
(SecurityRestrictionMode.backingSecurityRestrictionMode):
(SecurityRestrictionMode.securityRestrictionMode):
* Tools/MiniBrowser/mac/WK2BrowserWindowController.m:
(-[WK2BrowserWindowController didChangeSettings]):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/EnhancedSecurity.mm:
(TestWebKitAPI::enableEnhancedSecurityForTesting):
(TestWebKitAPI::TEST(EnhancedSecurity, EnhancedSecurityEnablesTrue)):
(TestWebKitAPI::TEST(EnhancedSecurity, EnhancedSecurityEnableFalse)):
(TestWebKitAPI::TEST(EnhancedSecurity, EnhancedSecurityDisablesJIT)):
(TestWebKitAPI::TEST(EnhancedSecurity, 
EnhancedSecurityNavigationStaysEnabledAfterNavigation)):
(TestWebKitAPI::TEST(EnhancedSecurity, PSONToEnhancedSecurity)):
(TestWebKitAPI::TEST(EnhancedSecurity, PSONToEnhancedSecuritySamePage)):
(TestWebKitAPI::TEST(EnhancedSecurity, 
PSONToEnhancedSecuritySharedProcessPool)):
(TestWebKitAPI::TEST(EnhancedSecurity, 
PSONToEnhancedSecuritySharedProcessPoolReverse)):
(TestWebKitAPI::TEST(EnhancedSecurity, ProcessVariantMatchesConfiguration)):
(TestWebKitAPI::TEST(EnhancedSecurity, ProcessCanLaunch)):
(TestWebKitAPI::TEST(EnhancedSecurity, CaptivePortalProcessCanLaunch)):

Canonical link: https://commits.webkit.org/302121@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to