browser_attribution_actor.js opens eight tabs it does not need
Categories
(Firefox :: New Tab Page, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
(Blocks 1 open bug)
Details
(Keywords: perf-alert)
Attachments
(1 external file)
browser_attribution_actor.js runs 16 BrowserTestUtils.withNewTab("https://example.com") cycles. Eight of them exist only so that setAllowList() can call AttributionParent.prototype.setAllowListForTest, which assigns a module-global Set and never touches this, so no tab is needed to call it.
Dropping those eight tabs takes the test from 4.06 s to 3.52 s locally (2 runs before, 5 after, --headless), with the same 14 assertions passing and --verify at 420 passed / 0 failed / 0 unexpected.
| Assignee | ||
Comment 1•1 month ago
|
||
setAllowList() opened a tab at https://example.com solely to obtain an
AttributionParent instance and call setAllowListForTest on it. That method
assigns the module-global allowlist and never reads this, so the tab only
doubled the test's tab churn and its content process launches.
Updated•1 month ago
|
Comment 3•1 month ago
|
||
| bugherder | ||
Updated•1 month ago
|
Comment 4•1 month ago
|
||
Perfherder has detected a talos performance change from push 39445d833a71cc8d3e750ad1bc664bd0dbf15478.
No action is required from the author; this comment is provided for informational purposes only.
| Improvement | Test | Platform | Options | Absolute values [old vs new] |
|---|---|---|---|---|
| 5% | tart (doc) | linux2404-64-shippable | e10s fission stylo webrender-sw | 2.65 -> 2.51 |
Need Help or Information?
If you have any questions, please reach out to afinder@mozilla.com. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.
Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.
Description
•