STR:
  - Go to https://mozilla.github.io/pdf.js/web/viewer.html
  - Click on "Open File" and open a pdf

The `Download` button and the `Current view` one just disappear.
I can reproduce this bug with Firefox nightly, Chrome stable and Epiphany on debian.
const permissions = await pdfDocument.getPermissions();
    if (pdfDocument !== this.pdfDocument) {
      return; 
    }
    if (!permissions || !AppOptions.get("enablePermissions")) {
      return;
    }
    
    if (!permissions.includes(PermissionFlag.COPY)) {
      this.appConfig.viewerContainer.classList.add(ENABLE_PERMISSIONS_CLASS);
    }
  },
  /**
   * @private
   */
  _initializeAnnotationStorageCallbacks(pdfDocument) {