Closed Bug 1436961 Opened 7 years ago Closed 6 years ago

Remove unused XPCOMUtils.jsm imports after bug 1431533 (from accessible/jsat/ files)

Categories

(Firefox :: General, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 60
Tracking Status
firefox60 --- fixed

People

(Reporter: dao, Assigned: nabeel.ahsen)

References

Details

(Keywords: good-first-bug)

Attachments

(1 file)

Bug 1431533 replaced XPCOMUtils.defineLazyModuleGetter with ChromeUtils.defineModuleGetter but left behind unused XPCOMUtils.jsm imports, for instance:

https://hg.mozilla.org/mozilla-central/rev/e6a7b5e11ba856ee3535f76c6bcca17ea29e3d5f#l324.10
Priority: -- → P3
Hi there, I'm kind of new here. I'd like to work on this bug, would I be able to get some pointers to the right files?
Flags: needinfo?(dao+bmo)
(In reply to nabeel.ahsen from comment #1)
> Hi there, I'm kind of new here. I'd like to work on this bug, would I be
> able to get some pointers to the right files?

It's a bit of a hassle. Basically you need to look for any XPCOMUtils.jsm import:

https://searchfox.org/mozilla-central/search?q=XPCOMUtils.jsm&case=true&path=

Open any of these files and check if XPCOMUtils is used there. If it isn't, the XPCOMUtils.jsm import should probably be removed.

Since there are almost a thousand XPCOMUtils.jsm imports, you could also just focus on a subset of files. No need to fix them all at once.
Flags: needinfo?(dao+bmo)
Comment on attachment 8957958 [details] [diff] [review]
Removing unnecessary XPCOMUtils.jsm imports from accessible/jsat/ files

Looks good, thanks!
Attachment #8957958 - Flags: review+
Pushed by dgottwald@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a8f652436838
Remove obsolete XPCOMUtils.jsm imports in accessible/jsat/. r=dao
Keywords: leave-open
Keywords: good-first-bug
The rest of this is going to be fixed by bug 1478305 & friends by improving our ESLint support. Lets change the scope of this one and call it fixed as we did land a patch here.
Assignee: nobody → nabeel.ahsen
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Summary: Remove unused XPCOMUtils.jsm imports after bug 1431533 → Remove unused XPCOMUtils.jsm imports after bug 1431533 (from accessible/jsat/ files)
Target Milestone: --- → Firefox 60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: