Closed Bug 783015 Opened 12 years ago Closed 12 years ago

Chrome refreshdriver runs all the time

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
blocker

Tracking

()

RESOLVED FIXED
mozilla17
Tracking Status
firefox17 + fixed

People

(Reporter: smaug, Assigned: smaug)

References

Details

(Whiteboard: [qa-])

Attachments

(2 files)

I was randomly checking where to optimize responsiveness and noticed that the
chrome refresh driver runs all the time at full speed. It happens even if there is
just one Firefox window open and the only page is about:blank.
(in that case the content refreshdriver doesn't run)


(Another thing not clear to me at all is why we have separate refreshdriver for content and chrome)
Looks like we run the driver all the time because there are 2 image requests.
Investigating ...
chrome://browser/skin/tabbrowser/connecting.png
chrome://browser/skin/tabbrowser/loading.png
are all the time in the refresh driver.
Component: Layout → General
Product: Core → Firefox
Not sure if this is a layout bug or Firefox/Toolkit bug.
These images are used by <xul:image> tags that have a list-style-image assigned. If the tab's not busy they're hidden using 'display: none'.

https://mxr.mozilla.org/mozilla-central/source/browser/base/content/tabbrowser.css#44

I suspect a layout bug here.
Component: General → Layout
Product: Firefox → Core
Back to layout. It really should remove imgIRequests from refreshdriver if those won't be painted.
So I think this is because ImageLoader registers image request even if there isn't any
frames using it.
Trying to fix this.
Assignee: nobody → bugs
Attached patch WIPSplinter Review
Comment on attachment 652268 [details] [diff] [review]
WIP

Breaks animated backgrounds.
Attachment #652268 - Attachment is obsolete: true
To Kyle who wrote all this new code.
Assignee: bugs → khuey
Blocks: 697230
(In reply to Olli Pettay [:smaug] from comment #9)
> Comment on attachment 652268 [details] [diff] [review]
> WIP
> 
> Breaks animated backgrounds.

Or maybe not. They are broken anyway, Bug 783220
(This is killing my battery)
Severity: normal → blocker
Attachment #652268 - Attachment is obsolete: false
Attachment #652268 - Flags: review?(khuey)
Attached patch patchSplinter Review
actually use presContext and don't recall the method.
https://hg.mozilla.org/mozilla-central/rev/e33c175f6807
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Can someone please advise QA how to verify this bug is fixed for Firefox 17?
Whiteboard: [qa?]
that is hard. I profiled FF, and added some printfs to refreshdriver to figure out 
this.

but I haven't seen this after the fix.
Okay, thanks Olli. I'm going to flag this [qa-] meaning QA won't allocate resources to trying to verify this fix. If you or someone else finds a way to reliably verify this, please do so.

Thank you.
Whiteboard: [qa?] → [qa-]
Depends on: 865511
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: