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 |
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 5•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 6•6 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.
Comment 8•6 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
•