Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait until saving has finished before resetting PDFViewerApplication._saveInProgress (PR 12137 follow-up) #12211

Merged
merged 1 commit into from
Aug 13, 2020

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Aug 13, 2020

I obviously missed this during review, but currently PDFViewerApplication._saveInProgress is reset synchronously in PDFViewerApplication.save.
That was probably not intended, since it essentially renders the PDFViewerApplication._saveInProgress check pointless given that the actual saving is an asynchronous operation.

…._saveInProgress` (PR 12137 follow-up)

I obviously missed this during review, but currently `PDFViewerApplication._saveInProgress` is reset *synchronously* in `PDFViewerApplication.save`.
That was probably not intended, since it essentially renders the `PDFViewerApplication._saveInProgress` check pointless given that the actual saving is an *asynchronous* operation.
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/cc3ad67b94c314a/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/cc3ad67b94c314a/output.txt

Total script time: 3.25 mins

Published

@brendandahl brendandahl merged commit 67c361b into mozilla:master Aug 13, 2020
@Snuffleupagus Snuffleupagus deleted the _saveInProgress-reset branch August 13, 2020 16:24
@timvandermeij timvandermeij added annotations form-acroform Gecko 81 Tracking work planned for Form Fill in Shirley 81 release labels Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
annotations form-acroform Gecko 81 Tracking work planned for Form Fill in Shirley 81 release viewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants