Closed Bug 596044 Opened 14 years ago Closed 1 year ago

Let IdleService avoid polling for idle time

Categories

(Core :: Widget, defect)

All
Windows 8.1
defect

Tracking

()

RESOLVED DUPLICATE of bug 1768920
Tracking Status
fennec - ---

People

(Reporter: azakai, Unassigned)

Details

Polling runs a constant 5-second timer, which is wasteful (both bad for battery life on mobile, and bad for the cycle collector in general).

We can let idleservice implementations have callbacks for activity, which if present would remove the need for polling the idle time manually.

See also discussion in bug 564118.
Also, when removing the need for polling, we should fix the bug mentioned in bug 564118 where polling and non-polling widget systems behave differently if ResetIdleTimeout is not called.
tracking-fennec: --- → ?
tracking-fennec: ? → ---
tracking-fennec: --- → ?
Assignee: nobody → azakai
tracking-fennec: ? → 2.0+
tracking-fennec: 2.0+ → 2.0-
Fennec 2.0 shouldn't block on this, this should be done afterwards.
tracking-fennec: 2.0- → ---
(In reply to comment #2)
> Fennec 2.0 shouldn't block on this, this should be done afterwards.
Er, wasn't it marked as blocking-?
It was blocking-fennec=2.0-, I thought that meant it was desired for 2.0, but not mandatory? I was mistaken, sorry about that...
tracking-fennec: --- → 2.0-
(I won't be able to get around to this bug for a while.)
Assignee: azakai → nobody
Whiteboard: [fennec-4.1?]
Still need this?
tracking-fennec: - → ?
Whiteboard: [fennec-4.1?]
Not really I guess, Android doesn't allow polling anyhow and we disabled it on Maemo.
(In reply to comment #7)
> Not really I guess, Android doesn't allow polling anyhow and we disabled it on
> Maemo.
You maybe don't need this for mobile handheld devices, but this would certainly help for laptops.
tracking-fennec: ? → -
Modifying this to put it on our radar for investigation.
OS: All → Windows 8 Metro
OS: Windows 8 Metro → Windows 8.1
Severity: normal → S3
Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1768920
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.