Closed Bug 1658075 Opened 4 years ago Closed 4 years ago

Move testing functions from `ChromeUtils.webidl` to `MediaController.webidl`

Categories

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

task

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

Details

Attachments

(2 files)

While working in bug1656398, I encoutered a build error if I expose MediaSessionPlaybackState in MediaController.webidl, which conflicts with the ChromeUtilsBinding.

The solution would be move those testing function to MediaController.webidl. And that would give us two benefit. The first, fixing the build error, and the second, we can remove the test-only enum MediaSessionPlaybackTestState.

Create a new namespace MediaControlService to use those helper functions which is used to get the main controller related status.

Then, move those functions from ChromeUtils to MediaControlService, which give us two benefit. The first is that we can remove redudant test-only enum MediaSessionPlaybackTestState, the second is a pref-required work for bug1656398, to fix the build order error when exposing MediaSessionPlaybackState in the media controller's webidl.

Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/31940ed110c6 part1 : move testing functions to new namespace 'MediaControlService'. r=smaug,chunmin https://hg.mozilla.org/integration/autoland/rev/6f80afa46dca part2 : use testing functions from 'MediaControlService'. r=chunmin
Status: NEW → RESOLVED
Closed: 4 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: