Open Bug 1655353 Opened 4 years ago Updated 2 years ago

Sidebar gets no cursor focus when opened

Categories

(WebExtensions :: Frontend, defect, P3)

78 Branch
defect

Tracking

(Not tracked)

People

(Reporter: lars.winkler, Unassigned)

References

Details

(Whiteboard: addons-ux)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

I use Bitwarden password manager with its addon https://addons.mozilla.org/de/firefox/addon/bitwarden-password-manager/
This addon has hotkey (Shift+ Alt + Y) to open it in sidebar.

Maybe the issue is the same with other addons using sidebar. But I don't know any right yet.

Actual results:

If I open the Bitwarden addon sidebar (e.g. with hotkey) it gets no focus on input field.
It's not convenient after using keyboard for hotkey to grab the mouse to activate the input field.

Expected results:

If I open the Bitwaren addon sidebar (e.g. with hotkey) it should get focus on input field.
This would be very convenient, using keyboard hotkey and instantly entering Maser-Password. No need to grab the mouse.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Add-ons Manager
Product: Firefox → Toolkit
Component: Add-ons Manager → Frontend
Product: Toolkit → WebExtensions
Flags: needinfo?(mixedpuppy)
Severity: -- → S3
Type: enhancement → task
Priority: -- → P3
Type: task → defect

I can confirm this behavior for Bitwarden addon. I also tried to perform a bisection, but it looks like this is not a regression because the issue is also reproducing on old builds too.

Marking issue as NEW.

Status: UNCONFIRMED → NEW
Ever confirmed: true

While we load ext-browser-content.js into the sidebar, we do not call Extension:GrabFocus to have the focus set. We should probably query UX about this first.

Flags: needinfo?(mixedpuppy)
Whiteboard: addons-ux

I can confirm this is still an issue for me too.

Firefox 101.0.1 (64-bit)
MacOS High Sierra 10.13.6
BitWarden (extension) 2022.5.0

I like to open the Bitwarden sidebar with Alt + Shift + Y but it doesn't get the focus and to have this auto focused would be very appreciated.

Since I knew that F6 helps switching focus from searchbar to website (and vice versa) I even tried to use that. IMHO it could be a simple viable way to cycle throw searchbar -> sidebar -> website -> searchbar, but only if by selecting to the sidebar the focus will be put into the first useful input/textbox (like the master password text box or the search text box , either if you are already logged in or not). And I say that because I experimented using Shift + F6 and noticed this way it already sort cycle around these 3, but the invisible focus highlight is over the first element of the sidebar (so the master password text box is 2 Tab way)

You need to log in before you can comment on or make changes to this bug.