Closed
Bug 987212
Opened 11 years ago
Closed 4 years ago
Invisible gif (visibility: hidden) activates the refresh driver
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: rvitillo, Unassigned)
References
()
Details
(Keywords: power, Whiteboard: [Power:P2])
Attachments
(2 files)
(deleted),
text/html
|
Details | |
(deleted),
patch
|
tnikkel
:
feedback+
|
Details | Diff | Splinter Review |
Idling on the vube homepage seems to consume significantly more energy than on IE and Chrome.
Reporter | ||
Comment 1•11 years ago
|
||
The invisible gif in the testcase activates the refresh driver.
Reporter | ||
Updated•11 years ago
|
Component: General → CSS Parsing and Computation
Product: Firefox → Core
Summary: High power consumption on Vube homepage → Invisible gif (visibility: hidden) activates the refresh driver
Comment 2•11 years ago
|
||
Calling RegisterImageRequestIfAnimated/DeregisterImageRequests based on
the 'visibility' value seems to work. Timothy, is this the right way
to go?
https://tbpl.mozilla.org/?tree=Try&rev=f0f11f8c00dd
Attachment #8397402 -
Flags: feedback?(tnikkel)
Comment 3•11 years ago
|
||
Comment on attachment 8397402 [details] [diff] [review]
wip
This approach seems reasonable to me.
Attachment #8397402 -
Flags: feedback?(tnikkel) → feedback+
Comment 4•11 years ago
|
||
Cleopatra (the profiler UI) hits this as well. It has a throbber image which gets displayed briefly, but continues to trigger the refresh driver since it's only hidden with visibility:hidden. (See bug 1004541.)
Blocks: 1004541
Updated•9 years ago
|
Whiteboard: [Power]
Comment 6•9 years ago
|
||
Yeah, I think so. I still see calls to nsRefreshDriver::AddImageRequest in a debugger
for the image in the testcase. It looks like most of the patch would still apply
(I haven't tried applying it though).
Unfortunately, I don't have time to work on this for a while...
Perhaps seth@ or tn@ can take it from here?
Flags: needinfo?(mats)
Updated•9 years ago
|
Whiteboard: [Power] → [Power:P2]
Updated•7 years ago
|
Comment 7•4 years ago
|
||
Emilio, the testcase as attached doesn't reproduce a high load for me. In the case that this got fixed in the meantime we should be able to close this bug.
Flags: needinfo?(emilio)
Comment 8•4 years ago
|
||
I don't see anything off-hand that would've fixed this bug, but you're right that it seems fixed. Would be great to bisect it...
Flags: needinfo?(emilio)
Comment 9•4 years ago
|
||
Andrew landed some changes to stop updating animated images if the previous frame was never requested (ie painted) a while back (a few years?).
Comment 10•4 years ago
|
||
That would be bug 1454149.
Comment 11•4 years ago
|
||
Ah, sweet then :)
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•