Skip to content

Don't focus the PasswordPrompt input-field on load, when the viewer is embedded in e.g. an iframe (issue 12951) #12952

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

Merged
merged 1 commit into from
Feb 3, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

Given that we don't focus the viewer itself (among other things) when the viewer is embedded, I suppose that it makes some sense to not focus the PasswordPrompt input-field either on load.
In order to improve the overall UX here, if an incorrect password was provided we'll still focus the input-field.

Fixes #12951 (assuming we care to do so, of course).

… is embedded in e.g. an `iframe` (issue 12951)

Given that we don't focus the viewer *itself* (among other things) when the viewer is embedded, I suppose that it makes some sense to not focus the `PasswordPrompt` input-field either on load.
In order to improve the overall UX here, if an *incorrect* password was provided we'll still focus the input-field.

Fixes 12951 (assuming we care to do so, of course).
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Feb 3, 2021

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/a70967730ac3c28/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Feb 3, 2021

From: Bot.io (Linux m4)


Success

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

Total script time: 4.21 mins

Published

@timvandermeij timvandermeij merged commit 27ffbdf into mozilla:master Feb 3, 2021
@timvandermeij
Copy link
Contributor

I agree that it makes sense, and it's a small change, so I'm fine with this. Thanks!

@Snuffleupagus Snuffleupagus deleted the issue-12951 branch February 3, 2021 19:57
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.

Viewer: Password secured PDF focussing issue
3 participants