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

Use Promise.prototype.finally in the PDFRenderingQueue.renderView method #10582

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

Snuffleupagus
Copy link
Collaborator

Since finally is now supported through src/shared/compatibility.js, the temporary variable is no longer necessary.

Also, this patch fixes the inconsistent return type of PDFRenderingQueue.getHighestPriority when no pages/thumbnails are visible.

… method

Since [`finally`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/finally) is now supported through `src/shared/compatibility.js`, the temporary variable is no longer necessary.

Also, this patch fixes the inconsistent return type of `PDFRenderingQueue.getHighestPriority` when no pages/thumbnails are visible.
@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/f5edda2eaa18398/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

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

Total script time: 1.90 mins

Published

@timvandermeij timvandermeij merged commit 6520590 into mozilla:master Feb 25, 2019
@timvandermeij
Copy link
Contributor

That's nice, thanks!

@Snuffleupagus Snuffleupagus deleted the web-finally branch February 26, 2019 12:02
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.

3 participants