Title: [288997] trunk/Source/WebInspectorUI
Revision
288997
Author
[email protected]
Date
2022-02-02 14:30:25 -0800 (Wed, 02 Feb 2022)

Log Message

WebInspector: Add additional image MIME types to frontend
https://bugs.webkit.org/show_bug.cgi?id=235977

Reviewed by Patrick Angle.

Add MIME types around JPEG 2000, JPEG XL and AVIF. Sort the listings based on the file
extension to make it easier to spot missing image formats.

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

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (288996 => 288997)


--- trunk/Source/WebInspectorUI/ChangeLog	2022-02-02 22:13:03 UTC (rev 288996)
+++ trunk/Source/WebInspectorUI/ChangeLog	2022-02-02 22:30:25 UTC (rev 288997)
@@ -1,3 +1,17 @@
+2022-02-02  Don Olmstead  <[email protected]>
+
+        WebInspector: Add additional image MIME types to frontend
+        https://bugs.webkit.org/show_bug.cgi?id=235977
+
+        Reviewed by Patrick Angle.
+
+        Add MIME types around JPEG 2000, JPEG XL and AVIF. Sort the listings based on the file
+        extension to make it easier to spot missing image formats.
+
+        * UserInterface/Base/MIMETypeUtilities.js:
+        (WI.mimeTypeForFileExtension):
+        (WI.fileExtensionForMIMEType):
+
 2022-01-28  Patrick Angle  <[email protected]>
 
         Web Inspector: Add another Protocol Version (iOS 15.4)

Modified: trunk/Source/WebInspectorUI/UserInterface/Base/MIMETypeUtilities.js (288996 => 288997)


--- trunk/Source/WebInspectorUI/UserInterface/Base/MIMETypeUtilities.js	2022-02-02 22:13:03 UTC (rev 288996)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/MIMETypeUtilities.js	2022-02-02 22:30:25 UTC (rev 288997)
@@ -70,17 +70,20 @@
         "scss": "text/x-scss",
 
         // Image types.
+        "avif": "image/avif",
         "bmp": "image/bmp",
         "gif": "image/gif",
+        "ico": "image/x-icon",
+        "jp2": "image/jp2",
         "jpeg": "image/jpeg",
         "jpg": "image/jpeg",
+        "jxl": "image/jxl",
         "pdf": "application/pdf",
         "png": "image/png",
         "tif": "image/tiff",
         "tiff": "image/tiff",
+        "webp": "image/webp",
         "xbm": "image/x-xbitmap",
-        "webp": "image/webp",
-        "ico": "image/x-icon",
 
         "ogx": "application/ogg",
         "ogg": "audio/ogg",
@@ -210,18 +213,20 @@
         "text/x-scss": "scss",
 
         // Image types.
+        "image/avif": "avif",
         "image/bmp": "bmp",
         "image/gif": "gif",
+        "image/vnd.microsoft.icon": "ico",
+        "image/x-icon": "ico",
         "image/jp2": "jp2",
         "image/jpeg": "jpg",
+        "image/jxl": "jxl",
         "application/pdf": "pdf",
         "text/pdf": "pdf",
         "image/png": "png",
         "image/tiff": "tiff",
+        "image/webp": "webp",
         "image/x-xbitmap": "xbm",
-        "image/webp": "webp",
-        "image/vnd.microsoft.icon": "ico",
-        "image/x-icon": "ico",
 
         // Ogg
         "application/ogg": "ogx",
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to