Open Bug 1665986 Opened 4 years ago Updated 1 month ago

playing background audio doesn't request wakelock on linux

Categories

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

defect

Tracking

()

People

(Reporter: alwu, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

When playing audio on background, the wakelock state is locked-background. However, on linux, we didn't request wakelock for locked-background [1].

Therefore, on linux we didn't prevent computer from sleeping when playing audio from background tab.

[1] https://searchfox.org/mozilla-central/rev/d410917833190ee08a62b38f8f9de65cea1e661b/widget/gtk/WakeLockListener.cpp#491-497

+1 on:
mozilla-flatpak - 1.0
129.0 (64bit)

KDE Plasma 6.1.3 - Framework 6.4.0 - Qt 6.7.2
Fedora 40

Flags: needinfo?(stransky)

Alastor, so do you suggest to add locked-background to wakelock? Do I understand correctly that we want to dim screen but prevent power management to turn computer to sleep, right?

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