Skip to content

Split PDFViewerApplication.error into two methods, for PDF document loading/parsing errors vs other errors (PR 11647 follow-up) #12970

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

Merged
merged 1 commit into from
Feb 8, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

With these changes, we can easily unblock the "load" event regardless of where an error occurred.

/cc @emilio

@pdfjsbot
Copy link

pdfjsbot commented Feb 7, 2021

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/f339f54e72f3fbf/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Feb 7, 2021

From: Bot.io (Linux m4)


Success

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

Total script time: 4.25 mins

Published

@@ -812,6 +812,8 @@ const PDFViewerApplication = {
* destruction is completed.
*/
async close() {
this._unblockDocumentLoadEvent();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this really shouldn't matter for the Firefox built-in PDF Viewer use-case, since only the GENERIC viewer has openFile-support, in nonetheless can't hurt to ensure that closing a partially loaded document will actually fire the "load" event.

… loading/parsing errors vs other errors (PR 11647 follow-up)

With these changes, we can easily unblock the "load" event regardless of where an error occurred.
@pdfjsbot
Copy link

pdfjsbot commented Feb 8, 2021

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/01a1c7c4cb09387/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Feb 8, 2021

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/01a1c7c4cb09387/output.txt

Total script time: 4.26 mins

Published

@brendandahl brendandahl merged commit e525714 into mozilla:master Feb 8, 2021
@Snuffleupagus Snuffleupagus deleted the viewer-error branch March 4, 2021 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants