Open Bug 1845945 Opened 1 year ago Updated 3 months ago

Cannot access optional permissions modal with keyboard

Categories

(WebExtensions :: Untriaged, defect, P2)

Firefox 115
defect

Tracking

(firefox116 affected, firefox117 affected)

Tracking Status
firefox116 --- affected
firefox117 --- affected

People

(Reporter: rhiannan.berry, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [addons-jira])

Attachments

(1 file)

Attached image image (1).png

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

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.

Product: Firefox → WebExtensions

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.

Status: UNCONFIRMED → NEW
Ever confirmed: true

: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.

Flags: needinfo?(jteh)
Flags: needinfo?(gijskruitbosch+bugs)
See Also: → 1314245, 1734448

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.

Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(wdurand)

heh ok, thanks. That wasn't intuitive but I get it now. It's an extension (popup) bug.. Thanks!

Flags: needinfo?(wdurand)
Flags: needinfo?(jteh)

The severity field is not set for this bug.
:rpl, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(lgreco)
Severity: -- → S3
Priority: -- → P2
Whiteboard: [addons-jira]
Flags: needinfo?(lgreco)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: