Closed
Bug 1413798
Opened 8 years ago
Closed 8 years ago
macOS Sierra displaysleep
Categories
(Core :: Audio/Video: Playback, defect, P3)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: chad, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:56.0) Gecko/20100101 Firefox/56.0
Build ID: 20171024165158
Steps to reproduce:
Leave Firefox running, leave computer, wait for it to activate screen saver and/or sleep.
The addons other than the h264 and wildvine that I'm running are:
Shockwave Flash - Version: 27.0.0.183
uBlock Origin - 1.14.16
Results seem to vary. I've been trying to debug it, but I still can't say with certainty. One theory I've had is it could be tied to media elements in the tabs I have open.
Actual results:
Computer fails to sleep. I researched what was preventing sleep. pmset -g reported the following:
displaysleep 20 (display sleep prevented by firefox, firefox, firefox, firefox, firefox, firefox)
Sometimes it will include plugin-container as in the following.
displaysleep 20 (display sleep prevented by firefox, firefox, plugin-container, plugin-container)
Expected results:
Mac should have went to sleep.
| Reporter | ||
Comment 1•8 years ago
|
||
I should add that this bug does not occur 100% of the time. It probably occurs 75% or so. Subjectively it seems more likely if media content has been opened or is open but I can't prove that.
Updated•8 years ago
|
Component: Untriaged → Audio/Video
Product: Firefox → Core
Comment 2•8 years ago
|
||
Description is foggy, I am assuming for now that "media content" referring MediaElement and not WebAudio. I will set it as playback bug but feel free to change it.
Component: Audio/Video → Audio/Video: Playback
OS: Unspecified → Mac OS X
Comment 3•8 years ago
|
||
(In reply to Chad Dotson from comment #1)
> I should add that this bug does not occur 100% of the time. It probably
> occurs 75% or so. Subjectively it seems more likely if media content has
> been opened or is open but I can't prove that.
if you're playing a video (or audio), autosleep is disabled.
(In reply to Jean-Yves Avenard [:jya] from comment #3)
> if you're playing a video (or audio), autosleep is disabled.
There are some cases where we should sleep (e.g. looping background video) but watching Netflix isn't one of them.
Priority: -- → P3
There may be value in creating some UI around sleep behaviour.
| Reporter | ||
Comment 6•8 years ago
|
||
(In reply to Alex Chronopoulos [:achronop] from comment #2)
> Description is foggy, I am assuming for now that "media content" referring
> MediaElement and not WebAudio. I will set it as playback bug but feel free
> to change it.
Haven't actually looked at the source, but most of the time its video so I'll say MediaElement.
(In reply to Jean-Yves Avenard [:jya] from comment #3)
> (In reply to Chad Dotson from comment #1)
> > I should add that this bug does not occur 100% of the time. It probably
> > occurs 75% or so. Subjectively it seems more likely if media content has
> > been opened or is open but I can't prove that.
>
> if you're playing a video (or audio), autosleep is disabled.
I think I've encountered it more than once when no MediaElements are active, but have been on previous sites in the history. I'll confirm that.
Is autosleep enabled/disabled when media is paused?
Is it possible that autosleep is never getting reenabled in some cases?
(In reply to Anthony Jones (:kentuckyfriedtakahe, :k17e) from comment #4)
> (In reply to Jean-Yves Avenard [:jya] from comment #3)
> > if you're playing a video (or audio), autosleep is disabled.
>
> There are some cases where we should sleep (e.g. looping background video)
> but watching Netflix isn't one of them.
Agreed. What I'm seeing is not related to active video. Definitely noticed it on paused video (even on backgrounded tabs) and possibly just after video has been played but isn't a current tab.
| Reporter | ||
Comment 7•8 years ago
|
||
Ok. Following up. Tonight I had a couple tabs open and had been watching videos on youtube. I closed all the youtube tabs and no longer had any tabs with video/audio open and it would not sleep. pmset -g resulted in this (I changed my timeout for putting the display to sleep). I usually see this, the one I posted earlier or a mixture of firefox and plugin-container.
displaysleep 1 (display sleep prevented by plugin-container, plugin-container, plugin-container, plugin-container, plugin-container, plugin-container, plugin-container, plugin-container, plugin-container, plugin-container, plugin-container, plugin-container, plugin-co
| Reporter | ||
Comment 8•8 years ago
|
||
This issue might be resolved in v57. I am no longer encountering it.
Comment 9•8 years ago
|
||
(In reply to Chad Dotson from comment #8)
> This issue might be resolved in v57. I am no longer encountering it.
Thanks for letting us know.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•