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

Reset #renderError on RenderingCancelledException (PR 19128 follow-up) #19558

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Feb 25, 2025

This restores the behaviour that existed prior to PR #19128, see e.g.

pdf.js/web/pdf_page_view.js

Lines 908 to 911 in 8727a04

if (error instanceof RenderingCancelledException) {
this.#renderError = null;
return;
}
, since RenderingCancelledException should still overwrite any previously seen Error.

/cc @nicolo-ribaudo

@Snuffleupagus Snuffleupagus added viewer release-blocker Blocker for the upcoming release labels Feb 25, 2025
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/30838b47aaabccd/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/30838b47aaabccd/output.txt

Total script time: 0.87 mins

Published

@Snuffleupagus Snuffleupagus force-pushed the RenderingCancelledException-null-#renderError branch from 90addf6 to 6fae111 Compare February 25, 2025 15:44
…w-up)

This restores the behaviour that existed prior to PR 19128, see e.g. https://github.com/mozilla/pdf.js/blob/8727a04ae588545c8e954c143b9fc64384712461/web/pdf_page_view.js#L908-L911, since `RenderingCancelledException` should still overwrite any previously seen Error.
@Snuffleupagus Snuffleupagus force-pushed the RenderingCancelledException-null-#renderError branch from 6fae111 to d50d3b0 Compare February 25, 2025 15:46
@Snuffleupagus Snuffleupagus merged commit 0e08722 into mozilla:master Feb 26, 2025
7 checks passed
@Snuffleupagus Snuffleupagus deleted the RenderingCancelledException-null-#renderError branch February 26, 2025 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-blocker Blocker for the upcoming release viewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants