Closed
Bug 1367797
Opened 7 years ago
Closed 7 years ago
Write reflow tests for tab opening and closing when the tab strip is overflowed
Categories
(Firefox :: General, enhancement, P3)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: mconley, Assigned: mconley)
References
(Blocks 1 open bug)
Details
(Whiteboard: [reserve-photon-performance])
Attachments
(1 file)
Similar to bug 1363505, but blocked until we can make the tab strip cause reflows more deterministically (instead of via rAF).
Specific cases to be tested:
* Tab opening (tab strip switches to overflow)
* Tab opening (in overflow state)
* Tab closing (in overflow state)
* Tab closing (tab strip underflows)
* Tab switching (selected tab is scrolled out of view)
Updated•7 years ago
|
Whiteboard: [photon-performance] → [photon-performance] [triage]
Updated•7 years ago
|
Flags: qe-verify-
Priority: P2 → P3
Whiteboard: [photon-performance] [triage] → [reserve-photon-performance]
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(mconley)
Assignee | ||
Comment 1•7 years ago
|
||
Finally coming back around to this.
What we've already got:
* Tab opening (tab strip switches to overflow)
* Tab closing (tab strip underflows)
What we still need:
* Tab opening (in overflow state)
* Tab closing (in overflow state)
* Tab switching (selected tab is scrolled out of view)
Flags: needinfo?(mconley)
Comment hidden (mozreview-request) |
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8930620 [details]
Bug 1367797 - Add reflow tests for adding, removing and switching tabs while the tab strip is overflowed.
https://reviewboard.mozilla.org/r/201380/#review210210
Looks good, thanks.
I wonder if there would be any point in testing tab closing without animation.
Also, would it be useful to test closing several tabs at once? ie. should we put a reflow observer around the removeAllButFirstTab call? And if so should we do it both in an overflow and a non-overflow case?
Should we check that no reflow happens when closing a window? (a window with one tab / a window with multiple tabs)
(just giving food for thoughts here, none of these new cases is required for landing)
::: browser/base/content/test/performance/browser_tabstrip_overflow_underflow_reflows.js:57
(Diff revision 1)
>
> - await withReflowObserver(async function() {
> + Assert.ok(gBrowser.tabContainer.hasAttribute("overflow"),
> + "Tabs should now be overflowed.");
> +
> + // Now test that opening and closing a tab while overflowed doesn't cause
> + // us to overflow.
s/overflow/reflow/
::: browser/base/content/test/performance/browser_tabstrip_overflow_underflow_reflows.js:88
(Diff revision 1)
> + "First tab should be scrolled out of view.");
> +
> + // Now switch to the first tab. We shouldn't flush layout at all.
> + await withReflowObserver(async function(dirtyFrame) {
> + let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
> + await BrowserTestUtils.switchTab(gBrowser, firstTab);
BrowserTestUtils.switchTab returns a promise that waits for the TabSwitchDone event already.
Attachment #8930620 -
Flags: review?(florian) → review+
Comment hidden (mozreview-request) |
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cfa04fd0f319
Add reflow tests for adding, removing and switching tabs while the tab strip is overflowed. r=florian
Assignee | ||
Comment 6•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8930620 [details]
Bug 1367797 - Add reflow tests for adding, removing and switching tabs while the tab strip is overflowed.
https://reviewboard.mozilla.org/r/201380/#review210210
Good ideas! I've filed bug 1424377 for them.
Comment 7•7 years ago
|
||
Backed out changeset cfa04fd0f319 (bug 1367797) for causing browser-chrome failures on browser_tabstrip_overflow_underflow_reflows.js r=backout on a CLOSED TREE
https://treeherder.mozilla.org/logviewer.html#?job_id=150914547&repo=autoland
https://hg.mozilla.org/integration/autoland/rev/7d3a7c5c694253c8d0382f368067b2c26a6ec192
https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=cfa04fd0f3198bdefc3dbd3293756e0f1e101b96
Flags: needinfo?(mconley)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 9•7 years ago
|
||
Made some minor adjustments to make the test more resilient across different display sizes.
Flags: needinfo?(mconley)
Comment 10•7 years ago
|
||
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c1389acf296a
Add reflow tests for adding, removing and switching tabs while the tab strip is overflowed. r=florian
Comment 11•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
Updated•6 years ago
|
Assignee: nobody → mconley
You need to log in
before you can comment on or make changes to this bug.
Description
•