See https://bugzilla.mozilla.org/show_bug.cgi?id=1735738 for reference.
} else {
                    initPromise = page.getXfa().then(function (xfa) {
                      return rasterizeXfaLayer(
                        annotationLayerContext,
                        viewport,
                        xfa,
                        task.fontRules,
                        task.pdfDoc.annotationStorage,
                        task.renderPrint
                      );
                    });
                  }
                } else {
                  annotationLayerCanvas = null;
                  initPromise = Promise.resolve();
                }
              }
              var renderContext = {
                canvasContext: ctx,
                viewport,
                optionalContentConfigPromise: task.optionalContentConfigPromise,
              };
              if (renderForms) {
                renderContext.annotationMode = AnnotationMode.ENABLE_FORMS;
              } else if (renderPrint) {
                if (task.annotationStorage) {
                  renderContext.annotationMode = AnnotationMode.ENABLE_STORAGE;
                }
                renderContext.intent = "print";
              }