Extend ESLint rule mozilla/use-services to cover defineLazyServiceGetter(s)
Categories
(Developer Infrastructure :: Lint and Formatting, task, P3)
Tracking
(firefox94 fixed)
| Tracking | Status | |
|---|---|---|
| firefox94 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
Details
Attachments
(2 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
Bug 1729460 - Extend ESLint rule mozilla/use-services to cover defineLazyServiceGetter(s). r?Mossop!
48 bytes,
text/x-phabricator-request
|
Details | Review |
We already have an ESLint rule to avoid use of getService. It turns out we can easily extend it to handle XPCOMUtils.defineLazyServiceGetter(s) as well.
| Assignee | ||
Comment 1•4 years ago
|
||
| Assignee | ||
Comment 2•4 years ago
|
||
| Assignee | ||
Comment 3•4 years ago
|
||
Depends on D124838
Comment 5•4 years ago
|
||
Backed out 2 changesets (Bug 1729460) for causing newtab failures CLOSED TREE
Log: https://treeherder.mozilla.org/logviewer?job_id=351132767&repo=autoland
xpcshell failure: https://treeherder.mozilla.org/logviewer?job_id=351133028&repo=autoland&lineNumber=6097
Backout: https://hg.mozilla.org/integration/autoland/rev/83545c8a809117245e37ceb39f5f1deba96e16aa
| Assignee | ||
Comment 6•4 years ago
|
||
The newtab failure needed the harness updating for being able to stub the new UUID items. The Android failure was because it looks like Sinon can't stub the prompt service there (or at least not in the same way), so I've rolled it back to what it was and disabled the ESLint rule where ext-management.js uses the prompt service.
Comment 8•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c3e5a6ca39e9
https://hg.mozilla.org/mozilla-central/rev/3e4201f6087a
Updated•3 years ago
|
Description
•