Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f10b871ab9020a41d4e398647cfe587045ec8097
      
https://github.com/WebKit/WebKit/commit/f10b871ab9020a41d4e398647cfe587045ec8097
  Author: Darryl Parkinson <[email protected]>
  Date:   2026-06-15 (Mon, 15 Jun 2026)

  Changed paths:
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ContentFiltering.mm
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/IPCTestingAPI.mm
    M Tools/WebKitTestRunner/TestController.cpp
    M Tools/WebKitTestRunner/TestOptions.cpp
    M Tools/WebKitTestRunner/TestOptions.h

  Log Message:
  -----------
  Gate InstallMockContentFilter IPC behind AllowTestOnlyIPC
https://bugs.webkit.org/show_bug.cgi?id=309091
rdar://171645964

Reviewed by Ryosuke Niwa.

InstallMockContentFilter IPC on NetworkConnectionToWebProcess overwrites
a process-global MockContentFilterSettings singleton, allowing a
compromised WebContent process to redirect or block navigations for all
connections in the NetworkProcess.

This message is only used by test infrastructure to configure mock
content filtering. Gate it behind EnabledBy=AllowTestOnlyIPC so it is
rejected unless the test-only flag is set

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

* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/ContentFiltering.mm:
(configurationWithContentFilterSettings):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/IPCTestingAPI.mm:
(InstallMockContentFilterRequiresTestOnlyIPC)):
(InstallMockContentFilterRedirectsWithTestOnlyIPC)):
* Tools/WebKitTestRunner/TestController.cpp:
(WTR::TestController::resetPreferencesToConsistentValues):
* Tools/WebKitTestRunner/TestOptions.cpp:
(WTR::TestOptions::defaults):
(WTR::TestOptions::keyTypeMapping):
* Tools/WebKitTestRunner/TestOptions.h:
(WTR::TestOptions::allowTestOnlyMockContentFilterIPC const):

Originally-landed-as: 305413.453@rapid/safari-7624.2.5.110-branch 
(12bfbd5b45c3). rdar://176065359
Canonical link: https://commits.webkit.org/315249@main



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

Reply via email to