Cannot access optional permissions modal with keyboard
Categories
(WebExtensions :: Untriaged, defect, P2)
Tracking
(firefox116 affected, firefox117 affected)
People
(Reporter: rhiannan.berry, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [addons-jira])
Attachments
(1 file)
90.26 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0
Steps to reproduce:
Trigger a permission prompt for an optional permission in an extension
attempt to access modal with keyboard tabbing, and/cmd+L and tabbing
I can reproduce this with the permissions example extension https://github.com/mdn/webextensions-examples/tree/main/permissions
Actual results:
Modal was skipped/never focused
Expected results:
Modal and button should be focusable. Should be able to complete my selection with the keyboard
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'WebExtensions::Untriaged' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•1 year ago
|
||
Hello,
I reproduced the issue on the latest Nightly (117.0a1/20230730210800), Beta (116.0/20230727152340) and Release (115.0.3/20230726201356) under Windows 10 x64 and Ubuntu 22.04 LTS.
The modal is skipped and never focused when navigating via keyboard.
Comment 3•1 year ago
|
||
:Gijs and :Jamie: how can we keyboard-navigate within a popup like that? We tried to reproduce with the geolocation popup and we couldn't access the "Learn more" link or any of the buttons in the popup, which makes me think that it isn't a webextensions-only problem.
Comment 4•1 year ago
|
||
You can:
- use f6/shift-f6 to move focus to any panel like this
- in the case of the URL bar permissions, you can move focus to the icon that produces the permission prompt (geolocation, camera, whatever), and use enter/space to then navigate focus into the popup. I don't know if the latter works for this popup because I don't know how to reproduce based on the instructions in this report (ie I don't know how to go from the github repo to actually getting a popup like this in the browser.
- any panel can control whether or not it takes focus upon opening by using the
noautofocus
attribute: https://searchfox.org/mozilla-central/search?q=noautofocus .
I imagine that automatically focusing the panel is potentially annoying and/or opens up click/keyjacking attacks if there isn't a security delay on the buttons in that popup.
Comment 5•1 year ago
|
||
heh ok, thanks. That wasn't intuitive but I get it now. It's an extension (popup) bug.. Thanks!
Comment 6•1 year ago
|
||
The severity field is not set for this bug.
:rpl, could you have a look please?
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•3 months ago
|
Description
•