Open Bug 2034009 Opened 7 months ago Updated 5 months ago

Please do not inhibit suspend when playing a video

Categories

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

Firefox 149
defect

Tracking

()

UNCONFIRMED

People

(Reporter: tomkatudor, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:149.0) Gecko/20100101 Firefox/149.0

Steps to reproduce:

I had the site https://www.idokep.hu/idojaras/Budapest open.

Actual results:

$ gnome-session-inhibit -l
firefox: Playing video (idle)

This blocks suspend.

Expected results:

The laptop should have gone to suspend. Why on earth should a video in a web browser stop suspend?

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
See Also: → 2034162

I'm not able to reproduce this (testing with busctl --user call org.kde.Solid.PowerManagement.PolicyAgent /org/kde/Solid/PowerManagement/PolicyAgent org.kde.Solid.PowerManagement.PolicyAgent ListInhibitions).

Firefox apparently doesn't inhibit suspend if the a video has no audio but does if a video has muted audio, so reproduction might depend on which videos are served.

The media.video-wakelock pref is available to override.

Blocks: wakelock
Severity: -- → S3
See Also: → 1684718

The laptop should have gone to suspend. Why on earth should a video in a web browser stop suspend?

Because it's blocking the screen from turning off by blocking session idle (like other video playback apps), which is what people expect when they're playing a video with audio (the last thing you want is the screen turning off after a couple minutes while you're watching a 15-45 minutes long documentary on YouTube, for example).

However, in your particular situation with https://www.idokep.hu/idojaras/Budapest, what seems to be happening is that this page has autoplaying muted videos (specifically, this video), and Firefox apparently doesn't correctly handle videos that have a muted audio track.

I would think this should be considered a duplicate of bug #1684718.

Thank you for the reply. The only problem with it that this is not some screen timer or other automation, this is me wanting to suspend or power off my own machine.

So my problem is different - if the user want's to suspend while a video is playing, the system should at least offer the option to suspend.

On the other hand I don1t think that this is your problem.

tg

Or maybe you could just inhibit screen lock?

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