remove the code of the old about:performance
Categories
(Toolkit :: Performance Monitoring, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(3 files, 1 obsolete file)
44.99 KB,
patch
|
Felipe
:
review+
|
Details | Diff | Splinter Review |
20.37 KB,
patch
|
Felipe
:
review+
|
Details | Diff | Splinter Review |
2.50 KB,
patch
|
Felipe
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Green on try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=7b8d5011143514d9c0fa420678bed871817583e2
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Fixed an obvious mistake in the CSS cleanup patch.
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 5•5 years ago
|
||
Comment on attachment 9034745 [details] [diff] [review] part 2 - adapt the browser_aboutperformance.js test Review of attachment 9034745 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/components/aboutperformance/content/aboutPerformance.js @@ +304,5 @@ > } else if (/^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$/.test(host)) { > let addon = WebExtensionPolicy.getByHostname(host); > + if (!addon) { > + continue; > + } Does this belong in this bug? ::: toolkit/components/aboutperformance/tests/browser/browser_aboutperformance.js @@ +40,5 @@ > > + // Ensure it is reported as a medium or high energy impact. > + let l10nId = row.children[2].getAttribute("data-l10n-id"); > + Assert.ok(["energy-impact-medium", "energy-impact-high"].includes(l10nId), > + "our test tab is medium or high energy impact"); The biggest risk for this test is being intermittent here.. Did you run this on test-verify to make sure it is reliable? If you think this could be unreliable, how about instead of using the mutation observer above (to give the other tab time 1 refresh interval to use the CPU), convert this to a waitForCondition?
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
(In reply to :Felipe Gomes (needinfo me!) from comment #5)
Thanks for the reviews!
::: toolkit/components/aboutperformance/content/aboutPerformance.js
@@ +304,5 @@} else if (/^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$/.test(host)) { let addon = WebExtensionPolicy.getByHostname(host);
if (!addon) {
continue;
}
Does this belong in this bug?
Yes, this was causing a lot of noise when running the test.
::: toolkit/components/aboutperformance/tests/browser/browser_aboutperformance.js
@@ +40,5 @@
- // Ensure it is reported as a medium or high energy impact.
- let l10nId = row.children[2].getAttribute("data-l10n-id");
- Assert.ok(["energy-impact-medium", "energy-impact-high"].includes(l10nId),
"our test tab is medium or high energy impact");
The biggest risk for this test is being intermittent here.. Did you run this on test-verify to make sure it is reliable?
It passes test-verify locally. I just added all the TV jobs on my try push in comment 2 to be extra confident.
If you think this could be unreliable, how about instead of using the mutation observer above (to give the other tab time 1 refresh interval to use the CPU), convert this to a waitForCondition?
By default waitForCondition will wait for up to 3s, so unless I increase the try count, it would cover no more than one refresh.
Pushed by florian@queze.net: https://hg.mozilla.org/integration/mozilla-inbound/rev/99db2eabbf07 remove the code of the old about:performance, r=felipe. https://hg.mozilla.org/integration/mozilla-inbound/rev/99fad7aa0cb7 adapt the browser_aboutperformance.js test to cover the new about:performance, r=felipe. https://hg.mozilla.org/integration/mozilla-inbound/rev/2c7c37b0ce9c cleanup CSS selectors that dealt with about:performance containing multiple tables, r=felipe.
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/99db2eabbf07
https://hg.mozilla.org/mozilla-central/rev/99fad7aa0cb7
https://hg.mozilla.org/mozilla-central/rev/2c7c37b0ce9c
Description
•