diff --git a/test/unit/annotation_spec.js b/test/unit/annotation_spec.js
index 98362f4bf73d49..92272434590aa0 100644
--- a/test/unit/annotation_spec.js
+++ b/test/unit/annotation_spec.js
@@ -26,7 +26,6 @@ import {
   AnnotationFieldFlag,
   AnnotationFlag,
   AnnotationType,
-  isNodeJS,
   OPS,
   RenderingIntentFlag,
   stringToBytes,
@@ -2208,9 +2207,9 @@ describe("annotation", function () {
     });
 
     it("should compress and save text", async function () {
-      if (isNodeJS) {
+      if (!navigator.userAgent.includes("Firefox")) {
         pending(
-          "CompressionStream behaves differently in Node.js, compared to Firefox and Chrome."
+          "CompressionStream behaves differently in Chrome and Node.js, compared to Firefox (issue 17399)."
         );
       }
       const textWidgetRef = Ref.get(123, 0);