mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Don't save anything in XFA entry if no XFA! (bug 1732344)
- it aims to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1732344 - rename some variables to have a more clear code; - and last but no least, add a unit test to test saving.
This commit is contained in:
parent
c914e9f0a6
commit
4b0538d07a
5 changed files with 60 additions and 32 deletions
|
@ -1015,6 +1015,7 @@ const PDFViewerApplication = {
|
|||
} catch (reason) {
|
||||
// When the PDF document isn't ready, or the PDF file is still
|
||||
// downloading, simply fallback to a "regular" download.
|
||||
console.error(`Error when saving the document: ${reason.message}`);
|
||||
await this.download({ sourceEventType });
|
||||
} finally {
|
||||
await this.pdfScriptingManager.dispatchDidSave();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue