Closed
Bug 1071635
Opened 10 years ago
Closed 10 years ago
checkSizing() and onPageFirstSized() cause uninterruptible reflows
Categories
(Firefox :: New Tab Page, defect)
Firefox
New Tab Page
Tracking
()
People
(Reporter: ttaubert, Assigned: ttaubert)
References
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
adw
:
review+
|
Details | Diff | Splinter Review |
By accessing |document.documentElement.clientWidth| and calling |.getBoundingClientRect()| for all hidden elements (+ 1) about:newtab causes uninterruptible reflows when the page is first shown.
1) Code that collects telemetry data should not have any performance impact.
2) There might be a different/better way to determine how many children of #newtab-grid are visible?
Assignee | ||
Comment 1•10 years ago
|
||
Looks like nsIDOMWindowUtils has everything we need.
Assignee | ||
Comment 2•10 years ago
|
||
Comment on attachment 8493854 [details] [diff] [review]
0001-Bug-1071635-Get-rid-of-uninterruptible-reflows-cause.patch
Sorry, forgot to run tests. Will need to make some adjustments.
Attachment #8493854 -
Flags: review?(adw)
Assignee | ||
Comment 3•10 years ago
|
||
Passes tests now. Turns out I was actually calculating the wrong index by not ignoring empty cells.
Attachment #8493854 -
Attachment is obsolete: true
Attachment #8493919 -
Flags: review?(adw)
Assignee | ||
Comment 4•10 years ago
|
||
Looks like this snuck in with bug 1042214. The changes to browser_tabopen_reflow.js which obviously caught this have unfortunately not been reviewed :/
Blocks: 1042214
Comment 5•10 years ago
|
||
(In reply to Tim Taubert [:ttaubert] from comment #4)
> Looks like this snuck in with bug 1042214. The changes to
> browser_tabopen_reflow.js which obviously caught this have unfortunately not
> been reviewed :/
Sorry about that. I thought it was explicit that we wanted the reflow to calculate positions for the functionality, so the test was updated for that.
Assignee | ||
Comment 6•10 years ago
|
||
Yeah, I assumed this was a quick fix to unbreak the test but we don't actually want sync reflows :) I could maybe add something to the test that explicitly states what the test tries to prevent and who to ask for review? The test itself isn't that clear I think.
Updated•10 years ago
|
Attachment #8493919 -
Flags: review?(adw) → review+
Assignee | ||
Comment 7•10 years ago
|
||
Assignee | ||
Comment 8•10 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Assignee | ||
Updated•10 years ago
|
Iteration: --- → 35.2
Points: --- → 3
QA Whiteboard: [qa-]
Flags: firefox-backlog+
Updated•10 years ago
|
QA Whiteboard: [qa-]
Flags: qe-verify-
Comment 9•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 35
Updated•8 years ago
|
Keywords: regression
You need to log in
before you can comment on or make changes to this bug.
Description
•