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

[api-minor] Limit the maximum canvas width/height, in addition to its total area (bug 1943094) #19604

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

Snuffleupagus
Copy link
Collaborator

Browsers not only limit the maximum total canvas area, but additionally also limit their maximum width/height which affects PDF documents with e.g. very tall and narrow pages.
To address this we add a new maxCanvasDim viewer-option, which in Firefox will use a browser preference, such that both the total canvas area and the width/height will affect when CSS-zooming is used.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
… total area (bug 1943094)

Browsers not only limit the maximum total canvas area, but additionally also limit their maximum width/height which affects PDF documents with e.g. very tall and narrow pages.
To address this we add a new `maxCanvasDim` viewer-option, which in Firefox will use a browser preference, such that both the total canvas area and the width/height will affect when CSS-zooming is used.
@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/cc5a8afba5b6b7a/output.txt

@Snuffleupagus Snuffleupagus marked this pull request as ready for review March 4, 2025 15:11
@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/cc5a8afba5b6b7a/output.txt

Total script time: 0.85 mins

Published

@Snuffleupagus Snuffleupagus requested a review from calixteman March 4, 2025 15:12
@Snuffleupagus Snuffleupagus added the release-blocker Blocker for the upcoming release label Mar 4, 2025
Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you.

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux integrationtest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @Snuffleupagus received. Current queue size: 1

Live output at: http://54.241.84.105:8877/44d1c08b956899f/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/44d1c08b956899f/output.txt

Total script time: 11.80 mins

  • Integration Tests: FAILED

@Snuffleupagus Snuffleupagus merged commit ab8ebc9 into mozilla:master Mar 4, 2025
7 checks passed
@Snuffleupagus Snuffleupagus deleted the bug-1943094 branch March 4, 2025 16:53
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.

Bottom third of tall PDF document is clipped/unpainted
4 participants