ContentTaskUtils seems to be incorrectly configured as a global in eslint for tests
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Tracking
(firefox138 fixed)
Tracking | Status | |
---|---|---|
firefox138 | --- | fixed |
People
(Reporter: julienw, Assigned: julienw)
References
(Regressed 1 open bug)
Details
Attachments
(2 files)
When adding this code:
const { ContentTaskUtils } = ChromeUtils.importESModule(
"resource://testing-common/ContentTaskUtils.sys.mjs"
);
to devtools/client/performance-new/test/browser/helpers.js
, I get an error due to the eslint rule mozilla/no-redeclare-with-import-autofix
(this is in https://phabricator.services.mozilla.com/D240071).
According to :Standard8:
I think this definition is wrong.
I believe ContentTaskUtils isn't generally available, and we do have code to say it is available if particular function calls are made.
So we should probably remove it from there, and fix the few issues that are showing up.
I'll try removing the definition and see what happens.
Assignee | ||
Comment 1•1 month ago
|
||
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Assignee | ||
Comment 2•1 month ago
|
||
Comment 4•28 days ago
|
||
Backed out for causing failures at browser_webconsole_stubs_page_error.js.
Backout link: https://hg.mozilla.org/integration/autoland/rev/c100d32451875462676eb11241ff557609efe47f
Failure log: https://treeherder.mozilla.org/logviewer?job_id=500339391&repo=autoland&lineNumber=13867
Assignee | ||
Comment 5•26 days ago
|
||
I had to update some devtools test fixtures.
Here is a new try build after these updates:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=59dab9e465fbb3ca98a0cb2c7b8f80e993f52be7
Comment 7•25 days ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/190b26a351c5
https://hg.mozilla.org/mozilla-central/rev/c3c6243b121d
Description
•