Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fbbc247c4f4f9582a6d2bda8cc22f7679035062e
      
https://github.com/WebKit/WebKit/commit/fbbc247c4f4f9582a6d2bda8cc22f7679035062e
  Author: Per Arne Vollan <[email protected]>
  Date:   2024-09-26 (Thu, 26 Sep 2024)

  Changed paths:
    M Source/WTF/wtf/PlatformEnableCocoa.h
    M Source/WebKit/Platform/IPC/Connection.h
    M Source/WebKit/Platform/IPC/cocoa/ConnectionCocoa.mm
    M 
Source/WebKit/Shared/EntryPointUtilities/Cocoa/XPCService/XPCServiceMain.mm
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm

  Log Message:
  -----------
  Close XPC connection between UI process and WebContent process
https://bugs.webkit.org/show_bug.cgi?id=269574
rdar://115840818

Reviewed by Chris Dumez.

Close XPC connection between UI process and WebContent process after launch, 
since the XPC connection
should no longer be needed then. This feature flag can only be enabled when 
WebKit processes are
launched as extensions, since the lifetime of XPC services are closely related 
to the lifetime of the
XPC connection. The audit token needs to be cached in the Connection object, 
since it cannot be
retrieved after the XPC connection has been closed. This patch also adds a 
missing call to the
completion handler in maybeInitializeSandboxExtensionHandle, which was observed 
during the work on
this patch. This change has been validated locally on iOS where WebKit 
processes are launched as
extensions.

* Source/WTF/wtf/PlatformEnableCocoa.h:
* Source/WebKit/Platform/IPC/Connection.h:
* Source/WebKit/Platform/IPC/cocoa/ConnectionCocoa.mm:
(IPC::Connection::platformOpen):
(IPC::Connection::getAuditToken):
* Source/WebKit/Shared/EntryPointUtilities/Cocoa/XPCService/XPCServiceMain.mm:
(WebKit::XPCServiceEventHandler):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle):
* Source/WebKit/UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::didClose):
* Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::platformInitializeWebProcess):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to