| Summary: | Dynamically pass capture sandbox extensions to GPUProcess | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | youenn fablet <youennf> | ||||||||||||
| Component: | WebRTC | Assignee: | youenn fablet <youennf> | ||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||
| Severity: | Normal | CC: | achristensen, eric.carlson, webkit-bug-importer, youennf | ||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||
| Version: | WebKit Local Build | ||||||||||||||
| Hardware: | Unspecified | ||||||||||||||
| OS: | Unspecified | ||||||||||||||
| Bug Depends on: | |||||||||||||||
| Bug Blocks: | 228827 | ||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
youenn fablet
2021-05-03 11:37:07 PDT
Created attachment 427581 [details]
Patch
Created attachment 427645 [details]
Patch
Created attachment 427647 [details]
Patch
Comment on attachment 427647 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=427647&action=review > Source/WebKit/UIProcess/GPU/GPUProcessProxy.cpp:190 > + SandboxExtension::createHandleForMachLookup("com.apple.applecamerad"_s, WTF::nullopt, appleCameraServicePathSandboxExtensionHandle); > + extensions.append(WTFMove(appleCameraServicePathSandboxExtensionHandle)); > +#if HAVE(ADDITIONAL_APPLE_CAMERA_SERVICE) > + SandboxExtension::Handle additionalAppleCameraServicePathSandboxExtensionHandle; > + SandboxExtension::createHandleForMachLookup("com.apple.appleh13camerad"_s, WTF::nullopt, additionalAppleCameraServicePathSandboxExtensionHandle); It would be good to release log and not set `m_hasSentCameraSandboxExtension` if we can't create either of these like we do for "com.apple.webkit.camera". (In reply to Eric Carlson from comment #5) > Comment on attachment 427647 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=427647&action=review > > > Source/WebKit/UIProcess/GPU/GPUProcessProxy.cpp:190 > > + SandboxExtension::createHandleForMachLookup("com.apple.applecamerad"_s, WTF::nullopt, appleCameraServicePathSandboxExtensionHandle); > > + extensions.append(WTFMove(appleCameraServicePathSandboxExtensionHandle)); > > +#if HAVE(ADDITIONAL_APPLE_CAMERA_SERVICE) > > + SandboxExtension::Handle additionalAppleCameraServicePathSandboxExtensionHandle; > > + SandboxExtension::createHandleForMachLookup("com.apple.appleh13camerad"_s, WTF::nullopt, additionalAppleCameraServicePathSandboxExtensionHandle); > > It would be good to release log and not set > `m_hasSentCameraSandboxExtension` if we can't create either of these like we > do for "com.apple.webkit.camera". OK, will do Created attachment 427735 [details]
Patch
Created attachment 427737 [details]
Patch
Committed r277010 (237326@main): <https://commits.webkit.org/237326@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 427737 [details]. |