Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 66ae5a9db3811cfb088bcc42ebd4a8b20e253cc1
      
https://github.com/WebKit/WebKit/commit/66ae5a9db3811cfb088bcc42ebd4a8b20e253cc1
  Author: Darryl Parkinson <[email protected]>
  Date:   2026-09-16 (Wed, 16 Sep 2026)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferences+Extras.swift
    M Tools/TestWebKitAPI/PlatformCocoa.cmake
    M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
    A Tools/TestWebKitAPI/Tests/WebKit/WebPage/EnhancedSecurityTests.swift

  Log Message:
  -----------
  Forward securityRestrictionMode when bridging WebPage.NavigationPreferences 
to WKWebpagePreferences
https://bugs.webkit.org/show_bug.cgi?id=323976
rdar://187212963

Reviewed by Per Arne Vollan.

securityRestrictionMode is not yet carried across from the Swift WebPage API to
WKWebpagePreferences, so setting it in Swift does not currently take effect.
Clients using the
Objective-C WKWebViewConfiguration.defaultWebpagePreferences
path are unaffected. Both Swift routes are covered by this change —
WebPage.Configuration.defaultNavigationPreferences and NavigationDeciding —
since both convert through the same initialiser.

Adds the reverse enum converter and forwards the property, guarding on the
optional backing store as isLockdownModeEnabled does.

Test: Tools/TestWebKitAPI/Tests/WebKit/WebPage/EnhancedSecurityTests.swift

* Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferences+Extras.swift:
* Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* Tools/TestWebKitAPI/Tests/WebKit/WebPage/EnhancedSecurityTests.swift: Added.
(TestNavigationDecider.preferencesMutation):
(EnhancedSecurityTests.securityRestrictionModeFromNavigationDecider(_:)):

Canonical link: 
https://flagged.apple.com:443/proxy?t2=Db1N7q6Kv0&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzIxMjcyQG1haW4=&emid=0bbca922-886a-4e40-beef-af8c1c135fad&c=11



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

Reply via email to