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

Always focus the viewerContainer when entering PresentationMode (bug 1787456) #15355

Merged
merged 1 commit into from
Aug 27, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

This fixes the regression in bug 1787456, assuming that it should be handled on the PDF.js side.

…g 1787456)

This fixes the regression in [bug 1787456](https://bugzilla.mozilla.org/show_bug.cgi?id=1787456), assuming that it should be handled on the PDF.js side.
@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/0ccb7af79214e1e/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/0ccb7af79214e1e/output.txt

Total script time: 2.16 mins

Published

@calixteman
Copy link
Contributor

Don't you think that, in general, the buttons shouldn't steal the focus ?
Anyway, the other buttons grab the focus when they're clicked but the keyboard callbacks are correctly executed, so there is something specifically wrong with the fullscreen mode.

@Snuffleupagus
Copy link
Collaborator Author

Snuffleupagus commented Aug 27, 2022

Don't you think that, in general, the buttons shouldn't steal the focus ?

That might depend on the exact circumstances, since they definitely need to do that when using a keyboard. When using a mouse, I suppose that in general it may or may not be what you want depending on the exact situation.
Trying to handle both the mouse and keyboard correctly may be difficult/messy, I don't really know, so probably not something we want to worry about here (or even at all)...

Anyway, the other buttons grab the focus when they're clicked but the keyboard callbacks are correctly executed, so there is something specifically wrong with the fullscreen mode.

Yes, this is specifically a regression in Firefox related to Fullscreen-mode (as mentioned in the bug). However, based on https://bugzilla.mozilla.org/show_bug.cgi?id=1787456#c6 it seems that we should take this patch since it's very simple and should also be safe to uplift.

@Snuffleupagus Snuffleupagus marked this pull request as ready for review August 27, 2022 07:14
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.

@Snuffleupagus Snuffleupagus merged commit 4c63a91 into mozilla:master Aug 27, 2022
@Snuffleupagus Snuffleupagus deleted the bug-1787456 branch August 27, 2022 09:18
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Sep 2, 2022
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