Bug 222465 - Allow access to more cmio services from Web/GPU processes
Summary: Allow access to more cmio services from Web/GPU processes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-02-26 02:14 PST by youenn fablet
Modified: 2021-03-08 23:19 PST (History)
7 users (show)

See Also:


Attachments
Patch (2.41 KB, patch)
2021-02-26 02:17 PST, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2021-02-26 02:14:12 PST
Allow access to more cmio services from Web/GPU processes
Comment 1 Radar WebKit Bug Importer 2021-02-26 02:16:04 PST
<rdar://problem/74783208>
Comment 2 youenn fablet 2021-02-26 02:16:16 PST
<rdar://problem/74782404>
Comment 3 youenn fablet 2021-02-26 02:17:12 PST
Created attachment 421626 [details]
Patch
Comment 4 EWS 2021-02-26 09:20:13 PST
mazander@apple.com does not have committer permissions according to https://raw.githubusercontent.com/WebKit/WebKit/main/Tools/Scripts/webkitpy/common/config/contributors.json.

Rejecting attachment 421626 [details] from commit queue.
Comment 5 youenn fablet 2021-02-26 09:20:20 PST
Comment on attachment 421626 [details]
Patch

Let's wait for PerArne to validate this.
Comment 6 Per Arne Vollan 2021-02-26 09:22:19 PST
Comment on attachment 421626 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=421626&action=review

R=me.

> Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:1401
> +        (global-name "com.apple.cmio.registerassistantservice")

Are these needed in the WebContent process when they are present in the GPU process' sandbox?
Comment 7 youenn fablet 2021-02-26 09:23:32 PST
(In reply to Per Arne Vollan from comment #6)
> Comment on attachment 421626 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=421626&action=review
> 
> R=me.
> 
> > Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:1401
> > +        (global-name "com.apple.cmio.registerassistantservice")
> 
> Are these needed in the WebContent process when they are present in the GPU
> process' sandbox?

They are only needed in WebContent process when capturing in WebProcess.
Comment 8 Per Arne Vollan 2021-02-26 09:41:05 PST
Comment on attachment 421626 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=421626&action=review

>>> Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:1401
>>> +        (global-name "com.apple.cmio.registerassistantservice")
>> 
>> Are these needed in the WebContent process when they are present in the GPU process' sandbox?
> 
> They are only needed in WebContent process when capturing in WebProcess.

Are they currently strictly needed in WebProcess, or can we rely on capturing being done in GPU process going forward?
Comment 9 youenn fablet 2021-03-08 23:14:10 PST
(In reply to Per Arne Vollan from comment #8)
> Comment on attachment 421626 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=421626&action=review
> 
> >>> Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:1401
> >>> +        (global-name "com.apple.cmio.registerassistantservice")
> >> 
> >> Are these needed in the WebContent process when they are present in the GPU process' sandbox?
> > 
> > They are only needed in WebContent process when capturing in WebProcess.
> 
> Are they currently strictly needed in WebProcess, or can we rely on
> capturing being done in GPU process going forward?

The idea is indeed to do capture in GPUProcess going forward.
These services are allowed with a camera sandbox extension.
We should not send it to WebProcess it if capturing happens in GPUProcess.
Comment 10 EWS 2021-03-08 23:19:29 PST
Committed r274138: <https://commits.webkit.org/r274138>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 421626 [details].