<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Media Session: notify the UI process when media controls are enabled/disabled"
   href="https://bugs.webkit.org/show_bug.cgi?id=147802#c13">Comment # 13</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Media Session: notify the UI process when media controls are enabled/disabled"
   href="https://bugs.webkit.org/show_bug.cgi?id=147802">bug 147802</a>
              from <span class="vcard"><a class="email" href="mailto:mrajca&#64;apple.com" title="Matt Rajca &lt;mrajca&#64;apple.com&gt;"> <span class="fn">Matt Rajca</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=147802#c12">comment #12</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=258684&amp;action=diff" name="attach_258684" title="Patch">attachment 258684</a> <a href="attachment.cgi?id=258684&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=258684&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=258684&amp;action=review</a>
&gt; 
&gt; &gt; Source/WebCore/Modules/mediasession/MediaSession.cpp:74
&gt; &gt; -        m_controls = adoptRef(*new MediaRemoteControls(context));
&gt; &gt; +        m_controls = adoptRef(*new MediaRemoteControls(context, this));
&gt; 
&gt; Why doesn't this use MediaRemoteControls::create() (which would need an
&gt; extra parameter)?</span >

The bindings generator expects only one parameter (the ScriptExecutionContext) so I can't add another one. Since the only case where we need to store a backpointer to the media session is this one, I just create the object directly.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>