Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5f42dd57877220f5d9d574e11feb19ecf52212e9
      
https://github.com/WebKit/WebKit/commit/5f42dd57877220f5d9d574e11feb19ecf52212e9
  Author: Per Arne Vollan <[email protected]>
  Date:   2025-02-22 (Sat, 22 Feb 2025)

  Changed paths:
    M Source/JavaScriptCore/inspector/remote/RemoteInspector.h
    M Source/WebCore/workers/service/context/ServiceWorkerInspectorProxy.h
    M Source/WebKit/UIProcess/Cocoa/WebProcessProxyCocoa.mm
    M Source/WebKit/UIProcess/WebProcessProxy.h
    M Source/WebKit/UIProcess/WebProcessProxy.messages.in
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj
    A 
Source/WebKit/WebProcess/Inspector/ServiceWorkerDebuggableFrontendChannel.cpp
    A 
Source/WebKit/WebProcess/Inspector/ServiceWorkerDebuggableFrontendChannel.h
    A Source/WebKit/WebProcess/Inspector/ServiceWorkerDebuggableProxy.cpp
    A Source/WebKit/WebProcess/Inspector/ServiceWorkerDebuggableProxy.h
    M Source/WebKit/WebProcess/Storage/WebSWContextManagerConnection.cpp
    M Source/WebKit/WebProcess/Storage/WebSWContextManagerConnection.h
    M Source/WebKit/WebProcess/Storage/WebSWContextManagerConnection.messages.in
    M Source/WebKit/WebProcess/WebProcess.cpp
    M Source/WebKit/WebProcess/com.apple.WebProcess.sb.in
    M Tools/MiniBrowser/MiniBrowser.entitlements

  Log Message:
  -----------
  Remove sandbox extension to Web Inspector daemon in the WebContent process
rdar://135814632
https://bugs.webkit.org/show_bug.cgi?id=287347

Reviewed by Chris Dumez.

When access to the Web Inspector daemon is blocked in the WebContent process 
sandbox, we cannot create
the Service Worker inspection target in the WebContent process anymore. 
Instead, we create the inspection
target in the UI process. We also create a bidirectional communication channel 
over IPC between the
Service worker in the WebContent process and the new inspection target in the 
UI process. The new
inspection target in the UI process will then communicate with the Web 
Inspector daemon and enable
inspection of the Service Worker. Messages from the Service Worker to the UI 
process are sent via
WebProcessProxy, and messages from the Inspector to the Service Worker are 
being sent through
WebSWContextManagerConnection.

* Source/JavaScriptCore/inspector/remote/RemoteInspector.h:
* Source/WebCore/workers/service/context/ServiceWorkerInspectorProxy.h:
* Source/WebKit/UIProcess/Cocoa/WebProcessProxyCocoa.mm:
(WebKit::WebProcessProxy::createServiceWorkerDebuggable):
(WebKit::WebProcessProxy::deleteServiceWorkerDebuggable):
(WebKit::WebProcessProxy::sendMessageToInspector):
* Source/WebKit/UIProcess/WebProcessProxy.h:
* Source/WebKit/UIProcess/WebProcessProxy.messages.in:
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* 
Source/WebKit/WebProcess/Inspector/ServiceWorkerDebuggableFrontendChannel.cpp: 
Added.
(WebKit::ServiceWorkerDebuggableFrontendChannel::create):
(WebKit::ServiceWorkerDebuggableFrontendChannel::ServiceWorkerDebuggableFrontendChannel):
(WebKit::ServiceWorkerDebuggableFrontendChannel::sendMessageToFrontend):
* Source/WebKit/WebProcess/Inspector/ServiceWorkerDebuggableFrontendChannel.h: 
Added..
* Source/WebKit/WebProcess/Inspector/ServiceWorkerDebuggableProxy.cpp: Added.
(WebKit::ServiceWorkerDebuggableProxy::create):
(WebKit::ServiceWorkerDebuggableProxy::ServiceWorkerDebuggableProxy):
(WebKit::ServiceWorkerDebuggableProxy::connect):
(WebKit::ServiceWorkerDebuggableProxy::disconnect):
(WebKit::ServiceWorkerDebuggableProxy::dispatchMessageFromRemote):
* Source/WebKit/WebProcess/Inspector/ServiceWorkerDebuggableProxy.h: Added.
* Source/WebKit/WebProcess/Storage/WebSWContextManagerConnection.cpp:
(WebKit::WebSWContextManagerConnection::installServiceWorker):
(WebKit::WebSWContextManagerConnection::terminateWorker):
(WebKit::WebSWContextManagerConnection::connectToInspector):
(WebKit::WebSWContextManagerConnection::disconnectFromInspector):
(WebKit::WebSWContextManagerConnection::dispatchMessageFromInspector):
* Source/WebKit/WebProcess/Storage/WebSWContextManagerConnection.h:
* Source/WebKit/WebProcess/Storage/WebSWContextManagerConnection.messages.in:
* Source/WebKit/WebProcess/WebProcess.cpp:
(WebKit::WebProcess::initializeWebProcess):
* Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:
* Tools/MiniBrowser/MiniBrowser.entitlements:

Canonical link: https://commits.webkit.org/290896@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