Closed Bug 1794820 Opened 3 years ago Closed 3 years ago

Firefox doesnt unpause/pause videos with media keys while its isnt in focus

Categories

(Core :: Audio/Video: Playback, defect, P2)

Firefox 105
Desktop
Windows 11
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: janvondrasek09, Unassigned, NeedInfo)

References

Details

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

Steps to reproduce:

Open any site that plays video (in my case youtube) do anything to make firefox not in focus (in my case playing a game) and press media keys

Actual results:

doesnt do anything

Expected results:

pauses/unpauses videos

I forgot to mention i am using windows 11

OS: Unspecified → Windows 11
Hardware: Unspecified → Desktop

The Bugbug bot thinks this bug should belong to the 'Core::DOM: UI Events & Focus Handling' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: UI Events & Focus Handling
Product: Firefox → Core
Component: DOM: UI Events & Focus Handling → Audio/Video: Playback
See Also: → 1794502
Severity: -- → S2
Priority: -- → P2

Not sure if I understand do anything in the comment1. Windows has its own system to determine which app can own the control focus for the media key, which is usually the latest app requiring the focus. It would be the same for all applications, not just Firefox.

Eg. A plays music and requests the control focus. Then B plays music and requests the control focus as well. In this situation, Windows would only allow media keys to control B, not A.

In your case, it's likely that the game you played requests the focus as well, so that Firefox is losing its ability to receive events from media keys.

Flags: needinfo?(janvondrasek09)
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.