Open Bug 1665989 Opened 4 years ago Updated 4 years ago

Use a shared code for handling media wakelock on all platforms

Categories

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

task

Tracking

()

People

(Reporter: alwu, Unassigned)

References

(Blocks 1 open bug)

Details

Although we have a test for wakelock [1], we still got a bug1665986 where we didn't request for background audio on linux.

The reason is because the wakelock state we check in test didn't reflect to the actual platform wakelock state, so we should modify the wakelock artict to allow to use the same
same logic for all platforms (windows/MacOS/Linux/Android) to eliminate inconsistency among platforms and prevent from having that kind of issue (1665986) again.

[1] https://searchfox.org/mozilla-central/rev/d410917833190ee08a62b38f8f9de65cea1e661b/toolkit/content/tests/browser/browser_media_wakelock.js

You need to log in before you can comment on or make changes to this bug.