Follow up with issue: https://github.com/mozilla/pdf.js/issues/14146
Merged pull req: https://github.com/mozilla/pdf.js/pull/14189

Attach (recommended) or Link to PDF file here:
https://bug1708641.bmoattachments.org/attachment.cgi?id=9219459

- This popup appears because JS is enabled;
- And because the pdf contains some unsupported features (e.g. XFA);

Configuration:
- Firefox Nightly & Chrome
- macOS Big Sur 11.6

Steps to reproduce the problem:
1. Run gulp server
2. Open attached pdf

What is the expected behavior? 
No popup on open

What went wrong?
![error](https://user-images.githubusercontent.com/76935202/139354112-707887a2-a6a1-43a9-a92e-45d57c48206a.jpg)



const expr = this._timeoutCallbackIds.get(callbackId);
    if (!interval) {
      this._unregisterTimeoutCallback(callbackId);
    }
    if (expr) {
      this._globalEval(expr);
    }
  }
  _registerTimeout(callbackId, interval) {
    const timeout = Object.create(null);
    const id = { callbackId, interval };
    this._timeoutIds.set(timeout, id);
    if (this._timeoutIdsRegistry) {
      this._timeoutIdsRegistry.register(timeout, id);
    }
    return timeout;
  }
  _unregisterTimeout(timeout) {
    if (this._timeoutIdsRegistry) {
      this._timeoutIdsRegistry.unregister(timeout);
    }
    const data = this._timeoutIds.get(timeout);
    if (!data) {
      return;
    }
    this._timeoutIds.delete(timeout);
    this._cleanTimeout(data);
  }
  _cleanTimeout({ callbackId, interval }) {