<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: WebSockets: frame context menu items should content sniff to be more relevant"
   href="https://bugs.webkit.org/show_bug.cgi?id=170568#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: WebSockets: frame context menu items should content sniff to be more relevant"
   href="https://bugs.webkit.org/show_bug.cgi?id=170568">bug 170568</a>
              from <span class="vcard"><a class="email" href="mailto:bburg&#64;apple.com" title="Brian Burg &lt;bburg&#64;apple.com&gt;"> <span class="fn">Brian Burg</span></a>
</span></b>
        <pre>(In reply to Joseph Pecoraro from <a href="show_bug.cgi?id=170568#c5">comment #5</a>)
<span class="quote">&gt; (In reply to Brian Burg from <a href="show_bug.cgi?id=170568#c0">comment #0</a>)
&gt; &gt; Currently we have &quot;Log Frame Text&quot; and &quot;Log Frame Value&quot;. The latter logs
&gt; &gt; the frame as JSON, whether or not it actually is JSON.
&gt; 
&gt; I'm having trouble understanding this. We do know it is actually JSON, we've
&gt; done a JSON.parse() on the contents to prove it.
&gt; 
&gt; &gt; We should sniff the values prior to appending the menu items. If it is
&gt; &gt; JSON, have &quot;Log Frame as JSON&quot; and &quot;Log Frame as Text&quot;. If it's not
&gt; &gt; JSON, then the option should be &quot;Log Frame Value&quot;.
&gt; 
&gt; My expectations are:
&gt; 
&gt;    (1) if the frame is text =&gt; have a Log Text option
&gt;    (2) if the text is JSON  =&gt; have a Log Value option
&gt; 
&gt; which currently matches the code.
&gt; 
&gt; Is there a specific case where the context menus were confusing?</span >

&quot;Value&quot; is kinda confusing IMO since the text representation *is* the value. as JSON or as String would be clearer to me.</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>