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

[Regression] Ensure that documents with varying page sizes are initialized correctly (PR 15812 follow-up) #15872

Conversation

Snuffleupagus
Copy link
Collaborator

The rotation-caching added in PR #15812 completely breaks initialization of PDF documents with varying page sizes, causing all pages to wrongly get the same size; see e.g. sizes.pdf from the test-suite.
To fix that without having to e.g. add a new parameter, which feels error prone, this patch changes the PDFPageView.#setDimensions method to completely ignore the rotation-caching until the setPdfPage-method has been called.

…lized correctly (PR 15812 follow-up)

The rotation-caching added in PR 15812 completely breaks initialization of PDF documents with varying page sizes, causing all pages to wrongly get the same size; see e.g. `sizes.pdf` from the test-suite.
To fix that without having to e.g. add a new parameter, which feels error prone, this patch changes the `PDFPageView.#setDimensions` method to completely ignore the rotation-caching until the `setPdfPage`-method has been called.
@Snuffleupagus Snuffleupagus added viewer regression release-blocker Blocker for the upcoming release labels Dec 27, 2022
@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.241.84.105:8877/b2e16efe4dda8a8/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

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

Total script time: 1.26 mins

Published

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.

Thank you.

@Snuffleupagus Snuffleupagus merged commit ec6ad91 into mozilla:master Dec 27, 2022
@Snuffleupagus Snuffleupagus deleted the PDFPageView-setDimensions-regression branch December 27, 2022 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression release-blocker Blocker for the upcoming release viewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants