1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #12569 from calixteman/events

JS -- Fix events dispatchment and add tests
This commit is contained in:
Brendan Dahl 2020-11-16 10:26:29 -08:00 committed by GitHub
commit f39d87bff1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 459 additions and 104 deletions

View file

@ -1369,6 +1369,7 @@ const PDFViewerApplication = {
if (!objects || !AppOptions.get("enableScripting")) {
return;
}
const calculationOrder = await pdfDocument.getCalculationOrderIds();
const scripting = this.externalServices.scripting;
const {
info,
@ -1431,7 +1432,6 @@ const PDFViewerApplication = {
});
const dispatchEventName = generateRandomStringForSandbox(objects);
const calculationOrder = [];
const { length } = await pdfDocument.getDownloadInfo();
const filename =
contentDispositionFilename || getPDFFileNameFromURL(this.url);