Closed Bug 1950590 Opened 22 days ago Closed 9 days ago

Audio Output Devices prompt is not automatically focused if there's only 1 speaker

Categories

(Core :: Audio/Video, defect)

Firefox 135
defect

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: gabrielchl, Assigned: gabrielchl)

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:135.0) Gecko/20100101 Firefox/135.0

Steps to reproduce:

  1. ensure there's only 1 speaker available in your device
  2. go to https://jan-ivar.github.io/dummy/gum_picker_output2.html
  3. select "other..." in the speakers dropdown (with mouse / keyboard, which triggers selectAudioOutput())

Actual results:

notice that the prompt is shown, but keyboard focus stays in the webpage

Expected results:

focus should be moved to the prompt & stay trapped in the prompt

it appears that in this patch https://phabricator.services.mozilla.com/D182319 it was made so that it'll tried to focus on the listbox, but in the case of a single there isn't a listbox and therefore focus isn't moved to the prompt

Component: Untriaged → Audio/Video
Product: Firefox → Core

Focus the first button in the popup if the list is not shown in the prompt.
This happens when there is only 1 speaker.

Assignee: nobody → chihonglee777
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by ktomlinson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1478967dca6e focus speaker selection button in prompt r=karlt,emz
Flags: needinfo?(chihonglee777)
Pushed by ktomlinson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4fc8c971b606 focus speaker selection button in prompt r=karlt,emz
Flags: needinfo?(chihonglee777)
Status: ASSIGNED → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: