Web Inspector: Add application/vnd.api+json as a valid JSON MIME-type
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 13 Aug 2016 00:56:48 +0000 (00:56 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 13 Aug 2016 00:56:48 +0000 (00:56 +0000)
https://bugs.webkit.org/show_bug.cgi?id=160834
rdar://problem/27608536

Reviewed by Joseph Pecoraro.

* UserInterface/Views/CodeMirrorAdditions.js: Add Add application/vnd.api+json to extraJSONTypes.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@204437 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/CodeMirrorAdditions.js

index b6029a7..77b9b23 100644 (file)
@@ -1,3 +1,13 @@
+2016-08-12  Timothy Hatcher  <timothy@apple.com>
+
+        Web Inspector: Add application/vnd.api+json as a valid JSON MIME-type
+        https://bugs.webkit.org/show_bug.cgi?id=160834
+        rdar://problem/27608536
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Views/CodeMirrorAdditions.js: Add Add application/vnd.api+json to extraJSONTypes.
+
 2016-08-12  Nikita Vasilyev  <nvasilyev@apple.com>
 
         Web Inspector: Command-Shift-O causes infinite loop if web page has frames
index a61898b..a18955c 100644 (file)
         CodeMirror.defineMIME(type, "javascript");
     });
 
-    var extraJSONTypes = ["application/x-json", "text/x-json"];
+    var extraJSONTypes = ["application/x-json", "text/x-json", "application/vnd.api+json"];
     extraJSONTypes.forEach(function(type) {
         CodeMirror.defineMIME(type, {name: "javascript", json: true});
     });
-
 })();
 
 WebInspector.compareCodeMirrorPositions = function(a, b)