Attach (recommended) or Link to PDF file here:
See pdf in https://github.com/mozilla/pdf.js/issues/3109

Configuration:
- Web browser and its version: Firefox nightly
- Operating system and its version: Windows 10
- PDF.js version: builtin viewer

Steps to reproduce the problem:
1. Look at outlines

What is the expected behavior? (add screenshot)
![image](https://user-images.githubusercontent.com/5641725/141514798-0e656865-1cbf-4fb8-a89b-530d36da23c9.png)

What went wrong? (add screenshot)
![image](https://user-images.githubusercontent.com/5641725/141514740-c95e0237-8bf4-4129-a4a5-cb2ea5a3f4df.png)

const worker = new PDFWorker({ name: "test1" });
      await worker.promise;
      expect(worker.name).toEqual("test1");
      expect(!!worker.port).toEqual(true);
      expect(worker.destroyed).toEqual(false);
      expect(!!worker._webWorker).toEqual(true);
      expect(worker.port === worker._webWorker).toEqual(true);
      worker.destroy();
      expect(!!worker.port).toEqual(false);
      expect(worker.destroyed).toEqual(true);
    });
    it("worker created or destroyed by getDocument", async function () {
      if (isNodeJS) {
        pending("Worker is not supported in Node.js.");
      }
      const loadingTask = getDocument(basicApiGetDocumentParams);
      let worker;
      loadingTask.promise.then(function () {
        worker = loadingTask._worker;
        expect(!!worker).toEqual(true);
      });
      const destroyPromise = loadingTask.promise.then(function () {
        return loadingTask.destroy();
      });
      await destroyPromise;
      const destroyedWorker = loadingTask._worker;
      expect(!!destroyedWorker).toEqual(false);
      expect(worker.destroyed).toEqual(true);
    });
    it("worker created and can be used in getDocument", async function () {