[api-minor] Add an option to set the max canvas area

This commit is contained in:
Calixte Denizet 2023-03-06 17:16:43 +01:00
parent e0d934ac9d
commit e9474f1c84
5 changed files with 35 additions and 3 deletions

View file

@ -434,6 +434,11 @@ class FirefoxExternalServices extends DefaultExternalServices {
const isInAutomation = FirefoxCom.requestSync("isInAutomation");
return shadow(this, "isInAutomation", isInAutomation);
}
static get canvasMaxAreaInBytes() {
const maxArea = FirefoxCom.requestSync("getCanvasMaxArea");
return shadow(this, "canvasMaxAreaInBytes", maxArea);
}
}
PDFViewerApplication.externalServices = FirefoxExternalServices;