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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

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.
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)
Whiteboard: [dependency: marketplace-partners]
which b2g release should this block harald? thx muchly!
Flags: needinfo?(hkirschner)
Should we nom this for 2.2 so it doesn't fall off the radar?
Flags: needinfo?(hkirschner) → needinfo?(khu)
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)
Use feature-b2g:2.2? rather than just 2.2.
feature-b2g: 2.2 → 2.2?
richard, can you look at this post the ssl3 meltdown :/
Flags: needinfo?(dougt)
How would ssl3 issues impact this bug?
My guess is that Doug was asking you to take a look when you had time.
Blocks: 1093617
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.