Closed Bug 1635209 Opened 5 years ago Closed 5 years ago

[MediaControl-Windows] Set `IsPreviousEnabled` or `IsNextEnabled` to true only when their action handlers exist

Categories

(Core :: Audio/Video: Playback, enhancement, P3)

Desktop
Windows 10
enhancement

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: chunmin, Assigned: chunmin)

References

Details

Attachments

(1 file)

IsPreviousEnabled and IsNextEnabled should only be set on demand:

  • IsNextEnabled should only be true when media session has an action handler for nexttrack
  • IsPreviousEnabled: should only be true when media session has an action handler for previoustrack

This is what Chromium does.

Pushed by cchang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a2452926016c Implement SetSupportedMediaKeys on Windows r=alwu
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: