<?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>181995</bug_id>
          
          <creation_ts>2018-01-23 11:03:06 -0800</creation_ts>
          <short_desc>[macOS] WebProcess needs TCC entitlements for media capture</short_desc>
          <delta_ts>2018-05-09 14:40:09 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</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="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>mitz</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1392131</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2018-01-23 11:03:06 -0800</bug_when>
    <thetext>Now that TCC controls access to camera and microphone on macOS, the web process needs to have the following entitlements for our dynamic sandbox extension to work:

com.apple.tcc.delegated-services 
    kTCCServiceCamera
    kTCCServiceMicrophone</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1392133</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2018-01-23 11:03:35 -0800</bug_when>
    <thetext>&lt;rdar://problem/36674649&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1392134</commentid>
    <comment_count>2</comment_count>
      <attachid>332041</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2018-01-23 11:04:32 -0800</bug_when>
    <thetext>Created attachment 332041
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1392214</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2018-01-23 12:50:52 -0800</bug_when>
    <thetext>Committed r227436: &lt;https://trac.webkit.org/changeset/227436&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1403135</commentid>
    <comment_count>4</comment_count>
      <attachid>332041</attachid>
    <who name="">mitz</who>
    <bug_when>2018-03-01 21:42:37 -0800</bug_when>
    <thetext>Comment on attachment 332041
Patch

WebContent-OSX.entitlements is only used when the Web Content services needs the domain extension entitlement, which is only when it is relocatable (such as in Safari Technology Preview). Was this patch intended to grant the service this entitlement also when it’s installed as part of macOS or a Safari update?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1403242</commentid>
    <comment_count>5</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2018-03-02 09:03:50 -0800</bug_when>
    <thetext>(In reply to mitz from comment #4)
&gt; Comment on attachment 332041 [details]
&gt; Patch
&gt; 
&gt; WebContent-OSX.entitlements is only used when the Web Content services needs
&gt; the domain extension entitlement, which is only when it is relocatable (such
&gt; as in Safari Technology Preview). Was this patch intended to grant the
&gt; service this entitlement also when it’s installed as part of macOS or a
&gt; Safari update?

Yes!

Where do those entitlements live?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1422493</commentid>
    <comment_count>6</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2018-05-09 14:40:09 -0700</bug_when>
    <thetext>Dan answered this question in comment 5 in bug 184485.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>332041</attachid>
            <date>2018-01-23 11:04:32 -0800</date>
            <delta_ts>2018-01-23 12:16:49 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-181995-20180123110431.patch</filename>
            <type>text/plain</type>
            <size>1354</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XZWJL
aXQvQ2hhbmdlTG9nCShyZXZpc2lvbiAyMjc0MjQpCisrKyBTb3VyY2UvV2ViS2l0L0NoYW5nZUxv
Zwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE0IEBACisyMDE4LTAxLTIzICBCcmVudCBGdWxn
aGFtICA8YmZ1bGdoYW1AYXBwbGUuY29tPgorCisgICAgICAgIFttYWNPU10gV2ViUHJvY2VzcyBu
ZWVkcyBUQ0MgZW50aXRsZW1lbnRzIGZvciBtZWRpYSBjYXB0dXJlCisgICAgICAgIGh0dHBzOi8v
YnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xODE5OTUKKyAgICAgICAgPHJkYXI6Ly9w
cm9ibGVtLzM2Njc0NjQ5PgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgor
CisgICAgICAgICogQ29uZmlndXJhdGlvbnMvV2ViQ29udGVudC1PU1guZW50aXRsZW1lbnRzOiBB
ZGQgZGVsZWdhdGVkIHNlcnZpY2VzIG5lZWRlZCB0byBzdXBwb3J0IG1lZGlhCisgICAgICAgIGNh
cHR1cmUgZmVhdHVyZXMuCisKIDIwMTgtMDEtMjMgIENvbW1pdCBRdWV1ZSAgPGNvbW1pdC1xdWV1
ZUB3ZWJraXQub3JnPgogCiAgICAgICAgIFVucmV2aWV3ZWQsIHJvbGxpbmcgb3V0IHIyMjcyNzkg
YW5kIHIyMjczNzMuCkluZGV4OiBTb3VyY2UvV2ViS2l0L0NvbmZpZ3VyYXRpb25zL1dlYkNvbnRl
bnQtT1NYLmVudGl0bGVtZW50cwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2ViS2l0L0NvbmZpZ3Vy
YXRpb25zL1dlYkNvbnRlbnQtT1NYLmVudGl0bGVtZW50cwkocmV2aXNpb24gMjI3NDE0KQorKysg
U291cmNlL1dlYktpdC9Db25maWd1cmF0aW9ucy9XZWJDb250ZW50LU9TWC5lbnRpdGxlbWVudHMJ
KHdvcmtpbmcgY29weSkKQEAgLTIsNiArMiwxMSBAQAogPCFET0NUWVBFIHBsaXN0IFBVQkxJQyAi
LS8vQXBwbGUvL0RURCBQTElTVCAxLjAvL0VOIiAiaHR0cDovL3d3dy5hcHBsZS5jb20vRFREcy9Q
cm9wZXJ0eUxpc3QtMS4wLmR0ZCI+CiA8cGxpc3QgdmVyc2lvbj0iMS4wIj4KIDxkaWN0PgorCTxr
ZXk+Y29tLmFwcGxlLnRjYy5kZWxlZ2F0ZWQtc2VydmljZXM8L2tleT4KKwk8YXJyYXk+CisJCTxz
dHJpbmc+a1RDQ1NlcnZpY2VDYW1lcmE8L3N0cmluZz4KKwkJPHN0cmluZz5rVENDU2VydmljZU1p
Y3JvcGhvbmU8L3N0cmluZz4KKwk8L2FycmF5PgogCTxrZXk+Y29tLmFwcGxlLnByaXZhdGUueHBj
LmRvbWFpbi1leHRlbnNpb248L2tleT4KIAk8dHJ1ZS8+CiA8L2RpY3Q+Cg==
</data>
<flag name="review"
          id="351019"
          type_id="1"
          status="+"
          setter="eric.carlson"
    />
          </attachment>
      

    </bug>

</bugzilla>