Closed Bug 1729460 Opened 4 years ago Closed 4 years ago

Extend ESLint rule mozilla/use-services to cover defineLazyServiceGetter(s)

Categories

(Developer Infrastructure :: Lint and Formatting, task, P3)

Tracking

(firefox94 fixed)

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(2 files)

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.

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6d52fde3ee0e Change users of defineLazyServiceGetter(s) to use Services.* where appropriate. r=mossop,webdriver-reviewers,extension-reviewers,whimboo,robwu https://hg.mozilla.org/integration/autoland/rev/5617839462be Extend ESLint rule mozilla/use-services to cover defineLazyServiceGetter(s). r=mossop

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.

Flags: needinfo?(standard8)
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c3e5a6ca39e9 Change users of defineLazyServiceGetter(s) to use Services.* where appropriate. r=mossop,webdriver-reviewers,extension-reviewers,whimboo,robwu https://hg.mozilla.org/integration/autoland/rev/3e4201f6087a Extend ESLint rule mozilla/use-services to cover defineLazyServiceGetter(s). r=mossop
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: