Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f2c209dcfe3a1739de5e4f6b521b9b9ef0ecb2a1
      
https://github.com/WebKit/WebKit/commit/f2c209dcfe3a1739de5e4f6b521b9b9ef0ecb2a1
  Author: Chris Dumez <[email protected]>
  Date:   2025-10-23 (Thu, 23 Oct 2025)

  Changed paths:
    M Source/WTF/wtf/PlatformHave.h
    M Source/WebKit/Platform/IPC/cocoa/ConnectionCocoa.mm
    A Source/WebKit/Platform/IPC/darwin/MachPort.h
    A Source/WebKit/Platform/IPC/darwin/MachPort.mm
    M Source/WebKit/Platform/SourcesCocoa.txt
    M Source/WebKit/UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj

  Log Message:
  -----------
  Mach ports used for IPC on Darwin should use MPO_CONNECTION_PORT when 
available
https://bugs.webkit.org/show_bug.cgi?id=301323
rdar://163191987

Reviewed by Per Arne Vollan.

Previously, regular port types were created, which had no restrictions. The
receive rights should be created with `mach_port_construct` and the
`MPO_CONNECTION_PORT` and `MPO_IMMOVABLE_RECEIVE` options (if available)
so that the resulting ports are immovable.

* Source/WTF/wtf/PlatformHave.h:
* Source/WebKit/Platform/IPC/cocoa/ConnectionCocoa.mm:
(IPC::Connection::platformOpen):
* Source/WebKit/Platform/IPC/darwin/MachPort.h: Added.
* Source/WebKit/Platform/IPC/darwin/MachPort.mm: Added.
(IPC::allocateImmovableConnectionPort):
* Source/WebKit/Platform/SourcesCocoa.txt:
* Source/WebKit/UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm:
(WebKit::ProcessLauncher::finishLaunchingProcess):
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:

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



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

Reply via email to