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

Don't update the Scroll/Spread-mode in the ViewHistory while PresentationMode is active (issue 15453) #15455

Merged
merged 1 commit into from
Sep 18, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

By force-quitting the browser while the FullScreen API is active, we don't get a chance to exit PresentationMode cleanly and some of its state thus remains (via the ViewHistory). To try and improve things here we can skip updating the Scroll/Spread-mode while PresentationMode is active, since they will be changed when entering PresentationMode, which seems to help and is really the best that we can do here (and what the issue describes is very much an edge-case anyway).

…tionMode is active (issue 15453)

By force-quitting the browser while the FullScreen API is active, we don't get a chance to exit PresentationMode *cleanly* and some of its state thus remains (via the `ViewHistory`).
To try and improve things here we can skip updating the Scroll/Spread-mode while PresentationMode is active, since they will be changed when entering PresentationMode, which seems to help and is really the best that we can do here (and what the issue describes is very much an edge-case anyway).
@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/39cddb1a7aa7b7c/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/39cddb1a7aa7b7c/output.txt

Total script time: 2.13 mins

Published

@timvandermeij timvandermeij merged commit 67160f4 into mozilla:master Sep 18, 2022
@timvandermeij
Copy link
Contributor

Thank you for improving this!

@Snuffleupagus Snuffleupagus deleted the issue-15453 branch September 18, 2022 13:21
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.

Exitting window in presentation mode directly causes wrong scroll bar range after reopenning
3 participants