This seems to happen more often now, but interestingly it only seems to happen on Linux. The last run was in https://github.com/mozilla/pdf.js/pull/13021#issuecomment-786012076. @calixteman Could you take a look at this to see if we can make the tests pass again?

The relevant log output is:

```
Failures:
1) Interaction in js-colors.pdf must changes colors
  Message:
[31m    In firefox: Expected 'rgba(0, 54, 255, 0.13)' to equal 'rgb(255, 0, 0)'.[0m
  Stack:
    Error: In firefox: Expected 'rgba(0, 54, 255, 0.13)' to equal 'rgb(255, 0, 0)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:661:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(255, 0, 0)' to equal 'rgb(0, 255, 0)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(255, 0, 0)' to equal 'rgb(0, 255, 0)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:667:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(0, 255, 0)' to equal 'rgb(0, 0, 255)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(0, 255, 0)' to equal 'rgb(0, 0, 255)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:676:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(0, 0, 255)' to equal 'rgb(255, 0, 0)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(0, 0, 255)' to equal 'rgb(255, 0, 0)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:661:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(255, 0, 0)' to equal 'rgb(0, 255, 0)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(255, 0, 0)' to equal 'rgb(0, 255, 0)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:667:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(0, 255, 0)' to equal 'rgb(0, 0, 255)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(0, 255, 0)' to equal 'rgb(0, 0, 255)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:676:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(0, 0, 255)' to equal 'rgb(255, 0, 0)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(0, 0, 255)' to equal 'rgb(255, 0, 0)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:661:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(255, 0, 0)' to equal 'rgb(0, 255, 0)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(255, 0, 0)' to equal 'rgb(0, 255, 0)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:667:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(0, 255, 0)' to equal 'rgb(0, 0, 255)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(0, 255, 0)' to equal 'rgb(0, 0, 255)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:676:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(0, 0, 255)' to equal 'rgb(255, 0, 0)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(0, 0, 255)' to equal 'rgb(255, 0, 0)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:661:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(255, 0, 0)' to equal 'rgb(0, 255, 0)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(255, 0, 0)' to equal 'rgb(0, 255, 0)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:667:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(0, 255, 0)' to equal 'rgb(0, 0, 255)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(0, 255, 0)' to equal 'rgb(0, 0, 255)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:676:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
```
});
    afterAll(async () => {
      await closePages(pages);
    });
    it("must execute WillSave and DidSave actions", async () => {
      await Promise.all(
        pages.map(async ([browserName, page]) => {
          await page.waitForFunction(
            "window.PDFViewerApplication.scriptingReady === true"
          );
          try {
            
            
            await page._client.send("Page.setDownloadBehavior", {
              behavior: "deny",
            });
          } catch (_) {}
          await clearInput(page, "#\\34 7R");
          await page.evaluate(_ => {
            window.document.activeElement.blur();
          });
          await page.waitForFunction(
            `document.querySelector("#\\\\34 7R").value === ""`
          );
          let text = await actAndWaitForInput(page, "#\\34 7R", async () => {
            await page.click("#download");
          });
          expect(text).withContext(`In ${browserName}`).toEqual("WillSave");
          await page.waitForFunction(
            `document.querySelector("#\\\\35 0R").value !== ""`