Web Inspector: brotli-compressed resources have "Compressed: No" in Resources details...
authornvasilyev@apple.com <nvasilyev@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Aug 2019 02:00:03 +0000 (02:00 +0000)
committernvasilyev@apple.com <nvasilyev@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Aug 2019 02:00:03 +0000 (02:00 +0000)
https://bugs.webkit.org/show_bug.cgi?id=200452

Reviewed by Joseph Pecoraro.

* UserInterface/Models/Resource.js:
(WI.Resource.prototype.get compressed):
Add "br" - Brotli content encoding.

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

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Models/Resource.js

index 17c5b29..26adb60 100644 (file)
@@ -1,3 +1,14 @@
+2019-08-05  Nikita Vasilyev  <nvasilyev@apple.com>
+
+        Web Inspector: brotli-compressed resources have "Compressed: No" in Resources details sidebar
+        https://bugs.webkit.org/show_bug.cgi?id=200452
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Models/Resource.js:
+        (WI.Resource.prototype.get compressed):
+        Add "br" - Brotli content encoding.
+
 2019-08-05  Devin Rousso  <drousso@apple.com>
 
         Web Inspector: Styles: variable swatch not shown for var() with a fallback
index 1ff1671..ac73a1e 100644 (file)
@@ -592,7 +592,7 @@ WI.Resource = class Resource extends WI.SourceCode
     get compressed()
     {
         let contentEncoding = this._responseHeaders.valueForCaseInsensitiveKey("Content-Encoding");
-        return !!(contentEncoding && /\b(?:gzip|deflate)\b/.test(contentEncoding));
+        return !!(contentEncoding && /\b(?:gzip|deflate|br)\b/.test(contentEncoding));
     }
 
     get requestedByteRange()