Web Inspector: Display fetch() initiated loads as "fetch" instead of "xhr" in the...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Oct 2017 21:30:16 +0000 (21:30 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Oct 2017 21:30:16 +0000 (21:30 +0000)
https://bugs.webkit.org/show_bug.cgi?id=178826

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2017-10-25
Reviewed by Youenn Fablet.

* UserInterface/Views/NetworkTableContentView.js:
(WI.NetworkTableContentView.shortDisplayNameForResourceType):
Fetch and XHR loads are still grouped under the succinct "XHR" filter, but
at least display the better type name in the "Type" column of the table.

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

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

index 7d166a8..c5ee9e7 100644 (file)
@@ -1,3 +1,15 @@
+2017-10-25  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Web Inspector: Display fetch() initiated loads as "fetch" instead of "xhr" in the Network Tab
+        https://bugs.webkit.org/show_bug.cgi?id=178826
+
+        Reviewed by Youenn Fablet.
+
+        * UserInterface/Views/NetworkTableContentView.js:
+        (WI.NetworkTableContentView.shortDisplayNameForResourceType):
+        Fetch and XHR loads are still grouped under the succinct "XHR" filter, but
+        at least display the better type name in the "Type" column of the table.
+
 2017-10-25  Devin Rousso  <webkit@devinrousso.com>
 
         Web Inspector: Canvas Tab: selected canvas card loses selection outline style while recording
index 4c3bd29..0b7cad3 100644 (file)
@@ -144,8 +144,9 @@ WI.NetworkTableContentView = class NetworkTableContentView extends WI.ContentVie
         case WI.Resource.Type.Script:
             return "JS";
         case WI.Resource.Type.XHR:
-        case WI.Resource.Type.Fetch:
             return "XHR";
+        case WI.Resource.Type.Fetch:
+            return WI.UIString("Fetch");
         case WI.Resource.Type.Ping:
             return WI.UIString("Ping");
         case WI.Resource.Type.Beacon: