<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebRTC: RTCIceCandidate init dictionary don't handle explicit null or undefined values correctly"
   href="https://bugs.webkit.org/show_bug.cgi?id=158873#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebRTC: RTCIceCandidate init dictionary don't handle explicit null or undefined values correctly"
   href="https://bugs.webkit.org/show_bug.cgi?id=158873">bug 158873</a>
              from <span class="vcard"><a class="email" href="mailto:adam.bergkvist&#64;ericsson.com" title="Adam Bergkvist &lt;adam.bergkvist&#64;ericsson.com&gt;"> <span class="fn">Adam Bergkvist</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=158873#c2">comment #2</a>)
<span class="quote">&gt; Comment on <span class="bz_obsolete"><a href="attachment.cgi?id=281562&amp;action=diff" name="attach_281562" title="Proposed patch">attachment 281562</a> <a href="attachment.cgi?id=281562&amp;action=edit" title="Proposed patch">[details]</a></span>
&gt; Proposed patch</span >

Thanks for the reviews

<span class="quote">&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=281562&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=281562&amp;action=review</a>
&gt; 
&gt; &gt; Source/WebCore/ChangeLog:8
&gt; &gt; +        Prevent explicit null and undefined values to be converted to &quot;null&quot; and &quot;undefined&quot; strings.
&gt; 
&gt; Nit: &quot;values to be converted to&quot; -&gt; &quot;values from being converted to&quot;</span >

Fixed.

(In reply to <a href="show_bug.cgi?id=158873#c3">comment #3</a>)
<span class="quote">&gt; Comment on <span class="bz_obsolete"><a href="attachment.cgi?id=281562&amp;action=diff" name="attach_281562" title="Proposed patch">attachment 281562</a> <a href="attachment.cgi?id=281562&amp;action=edit" title="Proposed patch">[details]</a></span>
&gt; Proposed patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=281562&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=281562&amp;action=review</a>
&gt; 
&gt; &gt; Source/WebCore/Modules/mediastream/RTCIceCandidate.cpp:59
&gt; &gt; +    if (dictionary.getWithUndefinedOrNullCheck(&quot;sdpMLineIndex&quot;, sdpMLineIndexString)) {
&gt; &gt; +        if (!sdpMLineIndexString.isNull()) {
&gt; 
&gt; I think you can join the 2 ifs in just one with an and condition. Also check
&gt; if getWithUndefinedOrNullCheck returns false if undefined or null, maybe we
&gt; do not need the second condition.</span >

Dug a bit deeper and getWithUndefinedOrNullCheck() returns false if the dictionary member was undefined or false; rendering the second check is unnecessary. Fixed.</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>