Closed
Bug 1053375
Opened 10 years ago
Closed 10 years ago
Close WebSockets when device goes to sleep to prevent battery drain
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(feature-b2g:2.2?)
RESOLVED
DUPLICATE
of bug 1085760
feature-b2g | 2.2? |
People
(Reporter: Harald, Unassigned)
References
Details
(Whiteboard: [dependency: marketplace-partners])
Open Websockets were reasons for various bugs on battery drainage (bug 890154 for Facebook, bug 1003639 for ConnectA2, etc). There is no way for an app to listen for the device screen being switched off. Facebook fixed this by disconnecting the Websocket on visibilitychange.
Doug Turner agreed in a thread about the FB issue that closing a websocket would be a good system behavior to prevent these bugs. Hopefully we can push this forward in thus bug.
Reporter | ||
Updated•10 years ago
|
Component: RIL → General
Flags: needinfo?(jonas)
Flags: needinfo?(dougt)
What do we do for other network connections? I.e. what happens if we're half way through an XHR when the screen is turned off? Do we make the connection receive an error? If so I'm in favor of also cutting websocket connections.
Flags: needinfo?(jonas)
Updated•10 years ago
|
Whiteboard: [dependency: marketplace-partners]
Comment 2•10 years ago
|
||
which b2g release should this block harald?
thx muchly!
Flags: needinfo?(hkirschner)
Reporter | ||
Comment 3•10 years ago
|
||
Should we nom this for 2.2 so it doesn't fall off the radar?
Flags: needinfo?(hkirschner) → needinfo?(khu)
Comment 4•10 years ago
|
||
Let's put this item in 2.2 for now. Before 2.2 starts, we can review these items with product management team to see which version we could put this item to.
Do we know the possible effort on this? Thanks!
feature-b2g: --- → 2.2
Flags: needinfo?(khu)
Comment 6•10 years ago
|
||
richard, can you look at this post the ssl3 meltdown :/
Flags: needinfo?(dougt)
Comment 7•10 years ago
|
||
How would ssl3 issues impact this bug?
Comment 8•10 years ago
|
||
My guess is that Doug was asking you to take a look when you had time.
Comment 9•10 years ago
|
||
Bug 1085760 will fix this, among other things, so I'm not seeing the need to keep a separate bug open here.
Apparently I don't have the Bugzilla permissions to mark bug 1085760 "feature-b2g:2.2?". Could someone do that for me?
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•