<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:drousso@apple.com" title="Devin Rousso <drousso@apple.com>"> <span class="fn">Devin Rousso</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: application/xml content not shown"
   href="https://bugs.webkit.org/show_bug.cgi?id=199861">bug 199861</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 #374294 Flags</td>
           <td>review?, commit-queue?
           </td>
           <td>review+, commit-queue-
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: application/xml content not shown"
   href="https://bugs.webkit.org/show_bug.cgi?id=199861#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: application/xml content not shown"
   href="https://bugs.webkit.org/show_bug.cgi?id=199861">bug 199861</a>
              from <span class="vcard"><a class="email" href="mailto:drousso@apple.com" title="Devin Rousso <drousso@apple.com>"> <span class="fn">Devin Rousso</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=374294&action=diff" name="attach_374294" title="Patch">attachment 374294</a> <a href="attachment.cgi?id=374294&action=edit" title="Patch">[details]</a></span>
Patch

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

r=me, nice catch!  If need someone else to cq+ (or r+ again), just let me know.

<span class="quote">> Source/WebInspectorUI/UserInterface/Base/MIMETypeUtilities.js:290
> +        "application/xml": "xml",</span >

We already have a mapping above for "text/xml" (>173), so please move just this line to be after that.

<span class="quote">> Source/WebInspectorUI/UserInterface/Base/MIMETypeUtilities.js:325
> +    if (extension === "js" || extension === "json" || extension === "xml")</span >

This shouldn't be added to this `if`, as it doesn't apply to the comment.  If anything, I'd restructure a bit of this function:
```js
    let extension = WI.fileExtensionForMIMEType(mimeType);
    if (extension === "xml")
        return true;

    // Various script/JSON mime types.
    if (extension === "js" || extension === "json")
        return true;

    // Various media text mime types.
    if (extension === "m3u8" || extension === "m3u")
        return true;
```</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>