<?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>172157</bug_id>
          
          <creation_ts>2017-05-15 21:49:31 -0700</creation_ts>
          <short_desc>[WK2][macOS] Support Flash Player DRM features</short_desc>
          <delta_ts>2017-06-07 16:49:53 -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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=173082</see_also>
          <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>achristensen</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dino</cc>
    
    <cc>ggaren</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1308974</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2017-05-15 21:49:31 -0700</bug_when>
    <thetext>Certain Flash-based media players have DRM that require access to additional IOKit property.

This patch weakens the PluginProcess sandbox to support these DRM features.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1308975</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2017-05-15 21:50:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/31889297&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1308976</commentid>
    <comment_count>2</comment_count>
      <attachid>310222</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2017-05-15 21:51:51 -0700</bug_when>
    <thetext>Created attachment 310222
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1309249</commentid>
    <comment_count>3</comment_count>
      <attachid>310222</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-05-16 12:54:49 -0700</bug_when>
    <thetext>Comment on attachment 310222
Patch

Clearing flags on attachment: 310222

Committed r216943: &lt;http://trac.webkit.org/changeset/216943&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1309250</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-05-16 12:54:50 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1309251</commentid>
    <comment_count>5</comment_count>
      <attachid>310222</attachid>
    <who name="">mitz</who>
    <bug_when>2017-05-16 13:02:34 -0700</bug_when>
    <thetext>Comment on attachment 310222
Patch

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

&gt; Source/WebKit2/PluginProcess/mac/com.apple.WebKit.plugin-common.sb.in:68
&gt; +    (iokit-property &quot;IOMACAddress&quot;) ;; For some Flash players
&gt; +    (iokit-property &quot;IOPlatformSerialNumber&quot;) ;; Ditto

I wonder why things that are needed for specific plug-ins cannot be in the sandbox profiles for those specific plug-ins, such as com.macromedia.Flash Player.plugin.sb and com.macromedia.Flash Player ESR.plugin.sb.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1309264</commentid>
    <comment_count>6</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2017-05-16 13:30:45 -0700</bug_when>
    <thetext>(In reply to mitz from comment #5)
&gt; Comment on attachment 310222 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=310222&amp;action=review
&gt; 
&gt; &gt; Source/WebKit2/PluginProcess/mac/com.apple.WebKit.plugin-common.sb.in:68
&gt; &gt; +    (iokit-property &quot;IOMACAddress&quot;) ;; For some Flash players
&gt; &gt; +    (iokit-property &quot;IOPlatformSerialNumber&quot;) ;; Ditto
&gt; 
&gt; I wonder why things that are needed for specific plug-ins cannot be in the
&gt; sandbox profiles for those specific plug-ins, such as com.macromedia.Flash
&gt; Player.plugin.sb and com.macromedia.Flash Player ESR.plugin.sb.

They definitely could be done at a lower level. Once some internal discussions are complete, we may decide to narrow the scope of these properties to specific plugins only.

Ultimately, of course, the goal is to get rid of plugins entirely.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>310222</attachid>
            <date>2017-05-15 21:51:51 -0700</date>
            <delta_ts>2017-05-16 12:54:49 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-172157-20170515215150.patch</filename>
            <type>text/plain</type>
            <size>1496</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDIxNjkwMCkKKysrIFNvdXJjZS9XZWJLaXQyL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBACisyMDE3LTA1LTE1ICBCcmVudCBG
dWxnaGFtICA8YmZ1bGdoYW1AYXBwbGUuY29tPgorCisgICAgICAgIFtXSzJdW21hY09TXSBTdXBw
b3J0IEZs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AgICAoaW9raXQtcHJvcGVydHkgIklPR0xCdW5k
bGVOYW1lIikKICAgICAoaW9raXQtcHJvcGVydHkgIklPR1ZBQ29kZWMiKQorICAgIChpb2tpdC1w
cm9wZXJ0eS1yZWdleCAiXklPR1ZBW0EtWl0rRGVjb2RlIikKKyAgICAoaW9raXQtcHJvcGVydHkg
IklPTUFDQWRkcmVzcyIpIDs7IEZvciBzb21lIEZsYXNoIHBsYXllcnMKKyAgICAoaW9raXQtcHJv
cGVydHkgIklPUGxhdGZvcm1TZXJpYWxOdW1iZXIiKSA7OyBEaXR0bwogICAgIChpb2tpdC1wcm9w
ZXJ0eSAiSU9TY3JlZW5SZXN0b3JlU3RhdGUiKQogICAgIChpb2tpdC1wcm9wZXJ0eSAiSU9WQVJl
bmRlcmVySUQiKQogICAgIChpb2tpdC1wcm9wZXJ0eS1yZWdleCAjIl5NZXRhbFBsdWdpbihOYW1l
fENsYXNzTmFtZSkiKQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>