Move testing functions from `ChromeUtils.webidl` to `MediaController.webidl`
Categories
(Core :: Audio/Video: Playback, task, P3)
Tracking
()
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
.
Assignee | ||
Comment 1•4 years ago
|
||
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.
Assignee | ||
Comment 2•4 years ago
|
||
Comment 4•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/31940ed110c6
https://hg.mozilla.org/mozilla-central/rev/6f80afa46dca
Description
•