<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>222465</bug_id>
          
          <creation_ts>2021-02-26 02:14:12 -0800</creation_ts>
          <short_desc>Allow access to more cmio services from Web/GPU processes</short_desc>
          <delta_ts>2021-03-08 23:19:31 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebRTC</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="youenn fablet">youennf</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jonlee</cc>
    
    <cc>mazander</cc>
    
    <cc>pvollan</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1733703</commentid>
    <comment_count>0</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-02-26 02:14:12 -0800</bug_when>
    <thetext>Allow access to more cmio services from Web/GPU processes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733704</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-02-26 02:16:04 -0800</bug_when>
    <thetext>&lt;rdar://problem/74783208&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733705</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-02-26 02:16:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/74782404&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733706</commentid>
    <comment_count>3</comment_count>
      <attachid>421626</attachid>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-02-26 02:17:12 -0800</bug_when>
    <thetext>Created attachment 421626
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733792</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-02-26 09:20:13 -0800</bug_when>
    <thetext>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 from commit queue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733793</commentid>
    <comment_count>5</comment_count>
      <attachid>421626</attachid>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-02-26 09:20:20 -0800</bug_when>
    <thetext>Comment on attachment 421626
Patch

Let&apos;s wait for PerArne to validate this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733795</commentid>
    <comment_count>6</comment_count>
      <attachid>421626</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2021-02-26 09:22:19 -0800</bug_when>
    <thetext>Comment on attachment 421626
Patch

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

R=me.

&gt; Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:1401
&gt; +        (global-name &quot;com.apple.cmio.registerassistantservice&quot;)

Are these needed in the WebContent process when they are present in the GPU process&apos; sandbox?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733797</commentid>
    <comment_count>7</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-02-26 09:23:32 -0800</bug_when>
    <thetext>(In reply to Per Arne Vollan from comment #6)
&gt; Comment on attachment 421626 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=421626&amp;action=review
&gt; 
&gt; R=me.
&gt; 
&gt; &gt; Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:1401
&gt; &gt; +        (global-name &quot;com.apple.cmio.registerassistantservice&quot;)
&gt; 
&gt; Are these needed in the WebContent process when they are present in the GPU
&gt; process&apos; sandbox?

They are only needed in WebContent process when capturing in WebProcess.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733815</commentid>
    <comment_count>8</comment_count>
      <attachid>421626</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2021-02-26 09:41:05 -0800</bug_when>
    <thetext>Comment on attachment 421626
Patch

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

&gt;&gt;&gt; Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:1401
&gt;&gt;&gt; +        (global-name &quot;com.apple.cmio.registerassistantservice&quot;)
&gt;&gt; 
&gt;&gt; Are these needed in the WebContent process when they are present in the GPU process&apos; sandbox?
&gt; 
&gt; 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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1737477</commentid>
    <comment_count>9</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-03-08 23:14:10 -0800</bug_when>
    <thetext>(In reply to Per Arne Vollan from comment #8)
&gt; Comment on attachment 421626 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=421626&amp;action=review
&gt; 
&gt; &gt;&gt;&gt; Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:1401
&gt; &gt;&gt;&gt; +        (global-name &quot;com.apple.cmio.registerassistantservice&quot;)
&gt; &gt;&gt; 
&gt; &gt;&gt; Are these needed in the WebContent process when they are present in the GPU process&apos; sandbox?
&gt; &gt; 
&gt; &gt; They are only needed in WebContent process when capturing in WebProcess.
&gt; 
&gt; Are they currently strictly needed in WebProcess, or can we rely on
&gt; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1737479</commentid>
    <comment_count>10</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-03-08 23:19:29 -0800</bug_when>
    <thetext>Committed r274138: &lt;https://commits.webkit.org/r274138&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 421626.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>421626</attachid>
            <date>2021-02-26 02:17:12 -0800</date>
            <delta_ts>2021-03-08 23:19:30 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-222465-20210226111710.patch</filename>
            <type>text/plain</type>
            <size>2466</size>
            <attacher name="youenn fablet">youennf</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjczNDgwCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCmluZGV4IGI5ZTBjNDQzZWUwMDJiZGRm
YzkxZGYxZmM0MmQ4NjgwMDI3ZjBjMWEuLmU1MTYwYWYyMTg1MjI4YmQwNzk5YTkxNDkwNjU1MjRh
NzE2M2U3MjAgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCisrKyBiL1NvdXJj
ZS9XZWJLaXQvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTYgQEAKKzIwMjEtMDItMjYgIFlvdWVubiBG
YWJsZXQgIDx5b3Vlbm5AYXBwbGUuY29tPgorCisgICAgICAgIEFsbG93IGFjY2Vzcy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