<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:eric.carlson&#64;apple.com" title="Eric Carlson &lt;eric.carlson&#64;apple.com&gt;"> <span class="fn">Eric Carlson</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebRTC: Add support for the negotiationneeded event in MediaEndpointPeerConnection"
   href="https://bugs.webkit.org/show_bug.cgi?id=158985">bug 158985</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Attachment #281737 Flags</td>
           <td>review?
           </td>
           <td>review+
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebRTC: Add support for the negotiationneeded event in MediaEndpointPeerConnection"
   href="https://bugs.webkit.org/show_bug.cgi?id=158985#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebRTC: Add support for the negotiationneeded event in MediaEndpointPeerConnection"
   href="https://bugs.webkit.org/show_bug.cgi?id=158985">bug 158985</a>
              from <span class="vcard"><a class="email" href="mailto:eric.carlson&#64;apple.com" title="Eric Carlson &lt;eric.carlson&#64;apple.com&gt;"> <span class="fn">Eric Carlson</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=281737&amp;action=diff" name="attach_281737" title="Proposed patch">attachment 281737</a> <a href="attachment.cgi?id=281737&amp;action=edit" title="Proposed patch">[details]</a></span>
Proposed patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=281737&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=281737&amp;action=review</a>

<span class="quote">&gt; LayoutTests/ChangeLog:15
&gt; +        * fast/mediastream/RTCPeerConnection-more-media-to-negotiate-expected.txt: Added.
&gt; +        * fast/mediastream/RTCPeerConnection-more-media-to-negotiate.html: Added.
&gt; +        Verify that a negotiationneeded event is fired when not all local media can be included in
&gt; +        an answer. (The answerer cannot reply with more m-lines than the offer had to begin with.)
&gt; +        * fast/mediastream/RTCPeerConnection-onnegotiationneeded-expected.txt:
&gt; +        * fast/mediastream/RTCPeerConnection-onnegotiationneeded.html:</span >

Don't we also need a test for a stream track entering an ended state? A bug for adding that test is fine if you don't want to do it in this patch.

Are there any other operations that should generate a 'negotiationneeded' event?

<span class="quote">&gt; LayoutTests/fast/mediastream/RTCPeerConnection-more-media-to-negotiate.html:10
&gt; +            description(&quot;Test that a negotiationneeded event is fired when all local media can't be included in an answer&quot;);</span >

Nit: &quot;when all local media can't be included&quot; -&gt; &quot;when not all local media can be included&quot;</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>