Closed Bug 1795362 Opened 2 years ago Closed 2 years ago

ESLint rule mozilla/valid-services-property errors in AboutCompat.jsm

Categories

(Web Compatibility :: Tooling & Investigations, task)

Tracking

(firefox107 fixed)

RESOLVED FIXED
Tracking Status
firefox107 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

AboutCompat.jsm currently references Services.scriptSecurityManager.createCodebasePrincipal which is obsolete, however I would assume it is left there because it is a fallback mechanism for older Firefox versions.

We therefore can add an exception for the rule.

Note this rule is not enabled by default, but needs to be run on a full Firefox build with via:

MOZ_OBJDIR=<objdir> ./mach eslint --rule "mozilla/valid-services-property: error" *

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6953d8ab7767 Ignore ESLint rule valid-services-property in fallback code in AboutCompat.jsm. r=webcompat-reviewers,denschub
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: