Closed
Bug 952835
Opened 11 years ago
Closed 11 years ago
screen goes to sleep while video still playing in Metro Firefox
Categories
(Firefox for Metro Graveyard :: General, defect, P2)
Tracking
(firefox28 verified, firefox29 verified)
VERIFIED
FIXED
Firefox 29
People
(Reporter: krudnitski, Assigned: rsilveira)
References
Details
(Whiteboard: [beta28] [defect] p=5)
Attachments
(1 file, 2 obsolete files)
3.73 KB,
patch
|
Details | Diff | Splinter Review |
on my surface pro 2, nightly (12-20 build still).
Go to this website: http://www.doyogawithme.com/content/mamachi-flow-prenatal-yoga-class-morning-flow and the screen goes to sleep even with the video still playing. Video pauses, and resumes once the screen is woken up again.
Expected behaviour: if I'm watching a video, screen stays on.
Updated•11 years ago
|
Blocks: metrov1backlog
Updated•11 years ago
|
Whiteboard: [triage] → [beta28] [defect] p=0
Comment 1•11 years ago
|
||
Documentation for Windows Store apps:
http://msdn.microsoft.com/en-us/library/windows/apps/jj152725.aspx
Do we have logic to prevent screensaver/sleep during video playback on other platforms?
Comment 2•11 years ago
|
||
> Do we have logic to prevent screensaver/sleep during video playback on other
> platforms?
We have code to do this on Android (bug 739542), and open bugs for other platforms (bug 517870, bug 772347).
Updated•11 years ago
|
Summary: screen goes to sleep while video still playing → screen goes to sleep while video still playing in Metro Firefox
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → rsilveira
Assignee | ||
Comment 3•11 years ago
|
||
Code is working fine. I'm not sure it's in the right place though. Also, the power manager service throws when closing the browser, due to ref count. It's destroyed before MetroAppShell gets destroyed and we remove the wakelock listener. Don't know where it should be.
Code is hooking up a WakeListener to power management service like Android is doing at [1] and [2].
Callback states for nsIDOMWakeLockListener are documented at [3]. Android's locking logic is at [4].
[1] - http://mxr.mozilla.org/mozilla-central/source/widget/android/nsAppShell.cpp#113
[2] - http://mxr.mozilla.org/mozilla-central/source/widget/android/nsAppShell.cpp#188
[3] - http://mxr.mozilla.org/mozilla-central/source/dom/power/nsIDOMWakeLockListener.idl#9
[4] - http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/GeckoApp.java#2617
Attachment #8360618 -
Flags: feedback?(jmathies)
Assignee | ||
Comment 4•11 years ago
|
||
Fixed the ref count issue after IRC chat with Jimm.
Attachment #8360618 -
Attachment is obsolete: true
Attachment #8360618 -
Flags: feedback?(jmathies)
Attachment #8360713 -
Flags: review?(jmathies)
Comment 5•11 years ago
|
||
Comment on attachment 8360713 [details] [diff] [review]
Patch v1
Review of attachment 8360713 [details] [diff] [review]:
-----------------------------------------------------------------
::: widget/windows/winrt/MetroAppShell.cpp
@@ +54,5 @@
> +public:
> + NS_DECL_ISUPPORTS;
> +
> +private:
> + ComPtr<ABI::Windows::System::Display::IDisplayRequest> displayRequest;
nit - mDisplayRequest
@@ +56,5 @@
> +
> +private:
> + ComPtr<ABI::Windows::System::Display::IDisplayRequest> displayRequest;
> +
> + NS_IMETHOD Callback(const nsAString& aTopic, const nsAString& aState) {
nit - white space above here
Attachment #8360713 -
Flags: review?(jmathies) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Patch with nits addressed.
Attachment #8360713 -
Attachment is obsolete: true
Assignee | ||
Comment 7•11 years ago
|
||
Updated•11 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P2
QA Contact: jbecerra
Whiteboard: [beta28] [defect] p=0 → [beta28] [defect] p=5
Comment 8•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
Assignee | ||
Updated•11 years ago
|
Whiteboard: [beta28] [defect] p=5 → [beta28] [defect] p=5 [approval-mozilla-aurora=metro-only]
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 9•11 years ago
|
||
status-firefox28:
--- → fixed
status-firefox29:
--- → fixed
Keywords: checkin-needed
Whiteboard: [beta28] [defect] p=5 [approval-mozilla-aurora=metro-only] → [beta28] [defect] p=5
Comment 10•11 years ago
|
||
For iteration #22, verified as fixed with latest Nightly and Aurora on Win 8.1 64-bit.
You need to log in
before you can comment on or make changes to this bug.
Description
•