-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 20d3e87. rdar://problem/107631614
[Cocoa] Extend access to the 'com.apple.gputools.service' mach service if Web Inspector is enabled https://bugs.webkit.org/show_bug.cgi?id=256673 <rdar://107631614> Reviewed by Per Arne Vollan. Access to the `com.apple.gputools.service` mach service is denied to the GPU Process. Unfortunately, some developer diagnostic tools for graphics investigation need this access to work. We should have the UI Process extend permission for the GPU Process to talk to relevant services when the Web Inspector has been enabled. * Source/WebKit/GPUProcess/GPUProcess.cpp: (WebKit::GPUProcess::initializeGPUProcess): Consume the GPU tools extensions if present. (WebKit::GPUProcess::updateSandboxAccess): Move outside the MEDIA_SESSION enablement macro so we can use it for WebInspector purposes. * Source/WebKit/GPUProcess/GPUProcess.h: * Source/WebKit/GPUProcess/GPUProcess.messages.in: Ditto. * Source/WebKit/GPUProcess/GPUProcessCreationParameters.cpp: (WebKit::GPUProcessCreationParameters::encode const): Update for additional sandbox extensions. (WebKit::GPUProcessCreationParameters::decode): Ditto. * Source/WebKit/GPUProcess/GPUProcessCreationParameters.h: * Source/WebKit/UIProcess/Cocoa/GPUProcessProxyCocoa.mm: (WebKit::GPUProcessProxy::platformInitializeGPUProcessParameters): Add GPU tools extensions to process launch parameters if needed. (WebKit::GPUProcessProxy::createGPUToolsSandboxExtensionHandlesIfNeeded): Added. * Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm: (WebKit::WebProcessPool::platformInitializeWebProcess): Extend GPU tools extensions to the GPU process if they haven't been sent before, but the WebInspector is now enabled. * Source/WebKit/UIProcess/GPU/GPUProcessProxy.cpp: (WebKit::GPUProcessProxy::GPUProcessProxy): * Source/WebKit/UIProcess/GPU/GPUProcessProxy.h: Canonical link: https://commits.webkit.org/264029@main Identifier: 263769.51@safari-7616.1.14.10-branch
- Loading branch information
1 parent
645d9c0
commit 0cc8a5f
Showing
9 changed files
with
55 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters