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

[Firefox] Stop logging RenderingCancelledExceptions as errors when printing #12446

Conversation

Snuffleupagus
Copy link
Collaborator

In the rest of the viewer code-base, we purposely don't treat RenderingCancelledExceptions as actual errors (since they aren't) and consequently we never log them.
Hence it makes sense, as far as I'm concerned, to simply treat RenderingCancelledExceptions the same way when printing in Firefox.

While I don't print a whole lot, I cannot remember seeing these "errors" logged when printing until very recently[1]. Given that the browser print functionality and UI, in Firefox, is under active development it's certainly possible that there's some recent changes to the related timings which make RenderingCancelledExceptions more likely now.


[1] Interestingly, only some PDF documents seem to be affected as well; I'm able to reproduce this pretty consistently by opening https://www.uni-muenster.de/imperia/md/content/ziv/pdf/printpay_flyer.pdf in Firefox and then repeating the following sequence:
Clicking on the PDF.js print button, and then cancelling printing.

…printing

In the rest of the viewer code-base, we purposely don't treat `RenderingCancelledException`s as actual errors (since they aren't) and consequently we never log them.
Hence it makes sense, as far as I'm concerned, to simply treat `RenderingCancelledException`s the same way when printing in Firefox.

While I don't print a whole lot, I cannot remember seeing these "errors" logged when printing until *very* recently[1]. Given that the browser print functionality and UI, in Firefox, is under active development it's certainly possible that there's some recent changes to the related timings which make `RenderingCancelledException`s more likely now.

---
[1] Interestingly, only some PDF documents seem to be affected as well; I'm able to reproduce this pretty consistently by opening https://www.uni-muenster.de/imperia/md/content/ziv/pdf/printpay_flyer.pdf in Firefox and then repeating the following sequence:
Clicking on the PDF.js print button, and then cancelling printing.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Oct 4, 2020

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

pdfjsbot commented Oct 4, 2020

From: Bot.io (Linux m4)


Success

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

Total script time: 3.59 mins

Published

@timvandermeij timvandermeij merged commit b3e32e2 into mozilla:master Oct 4, 2020
@timvandermeij
Copy link
Contributor

Looks like a good idea to me. Thanks!

@Snuffleupagus Snuffleupagus deleted the firefox-print-RenderingCancelledException branch October 5, 2020 08:44
@Snuffleupagus
Copy link
Collaborator Author

Actually, this started happening with PR #12315 since previously there was no attempt to ever cancel rendering during printing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants