wpt / navigation-timing / content-encoding.https.html?pipe=gzip

Open test on wpt.live | wpt.fyi

Runs: Chrome 160.0.8195.0 (wpt@1ab8957e4, 2026-12-01) | Firefox 163.0a1 (wpt@1ab8957e4, 2026-12-01) | Safari 257 preview (wpt@1ab8957e4, 2026-12-01) | Ladybird 1.0-6ebf3 (wpt@f779e426f, 2026-12-02) | Servo Servo 0.8 (wpt@75c11f957, 2026-12-01) | Blitz 713a982dc (wpt@705f393a6, 2026-12-01)

ChromeFirefoxSafariLadybirdServoBlitz
Total1/10/10/10/10/1NOT RUN
SubtestChromeFirefoxSafariLadybirdServoBlitz
contentEncoding should be gzip.PASSFAILFAILFAILFAIL—

/navigation-timing/content-encoding.https.html

<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="variant" , content="?pipe=gzip">
  <title>contentEncoding in navigation timing</title>
  <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
  <link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface" />
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>

  <script>
    async_test(function (t) {
      var observer = new PerformanceObserver(
        t.step_func(function (entryList) {
          assert_equals(entryList.getEntries()[0].contentEncoding, "gzip",
            "Expected contentEncoding to be gzip.");
          observer.disconnect();
          t.done();
        })
      );
      observer.observe({ entryTypes: ["navigation"] });

    }, "contentEncoding should be gzip.");
  </script>
</head>

<body>
  <h1>
    Description</h1>
  <p>
    This test validates that when a html is compressed with gzip, navigation timing reports contentEncoding as gzip</p>
</body>

</html>