Web Inspector: add WebVTT MIME/file type mappings to the frontend
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 6 Oct 2018 01:06:20 +0000 (01:06 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 6 Oct 2018 01:06:20 +0000 (01:06 +0000)
commit5d23d542cf746a52cf1b5e077a2bc32e7463a858
treeef3048d8e3e2c4c33c4cf418ae8380066f529fab
parent7292ba92c10c2a0db5646bf0e67ae42ccf159274
Web Inspector: add WebVTT MIME/file type mappings to the frontend
https://bugs.webkit.org/show_bug.cgi?id=190288

Reviewed by Brian Burg.

* UserInterface/Base/MIMETypeUtilities.js:
(WI.mimeTypeForFileExtension):
(WI.fileExtensionForMIMEType):

* UserInterface/Views/NetworkTableContentView.js:
(WI.NetworkTableContentView.displayNameForResource):
Also attempt to use the mime-type-to-extension when the `WI.Resource` is of type `Other`.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236892 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Base/MIMETypeUtilities.js
Source/WebInspectorUI/UserInterface/Views/NetworkTableContentView.js