Closed Bug 1854913 Opened 2 years ago Closed 2 years ago

Turn off ESLint rule mozilla/use-chromeutils-generateqi for plain mochitests as it should not apply there.

Categories

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

Tracking

(firefox120 fixed)

RESOLVED FIXED
Tracking Status
firefox120 --- fixed

People

(Reporter: standard8, Assigned: standard8)

Details

Attachments

(1 file)

mozilla/use-chromeutils-generateqi doesn't apply to plain mochitests, as they have to use SpecialPowers to get access to the various privileged functions. Although they can access SpecialPowers.ChromeUtils.generateQI it doesn't actually work for them, probably because of how the permissions are set up.

Given that this only affects test code, and a few cases, I think we can turn off the rule for the plain mochitests, as we have already done with some similar rules.

Summary: Turn off ESLint rule mozilla/use-chromeutils-generateqi for plain mochitests as it doesn't apply there. → Turn off ESLint rule mozilla/use-chromeutils-generateqi for plain mochitests as it should not apply there.
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a647d47b8c5c Turn off ESLint rule mozilla/use-chromeutils-generateqi for plain mochitests as it should not apply there. r=Gijs
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: