Loaders summer cleanup
Categories
(DevTools :: Framework, enhancement)
Tracking
(firefox70 fixed)
| Tracking | Status | |
|---|---|---|
| firefox70 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
Loader.jsm and base-loader are full of unused features / code branches which are far from being obvious.
These two modules could be shorter and slightly easier to process.
I'll attach here random patches doing quite random cleanups but mostly focusing on removing unused code.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
The rest was legacy code to support old xul add-ons.
All mozilla-central code used to be refactored, but a few places
were still using the old codepaths.
| Assignee | ||
Comment 4•6 years ago
|
||
We used to have another provider which would load module via file:// URI,
directly from the disk. But the progress on artifact builds and ./mach build faster
made this obsolete and has been removed a long time ago.
We still have a lot of abstraction to support this non-existent feature.
| Assignee | ||
Comment 5•6 years ago
|
||
This was kept to support old xul addons. All mozilla-central usages
have been removed and now uses Loader.jsm to get access to this module.
Comment 6•6 years ago
|
||
Hi Mark,
In this patch series we are updating a few JSMs, do we need to update https://searchfox.org/mozilla-central/source/tools/lint/eslint/modules.json manually to reflect the changes?
Comment 7•6 years ago
|
||
(In reply to Julian Descottes [:jdescottes] from comment #6)
In this patch series we are updating a few JSMs, do we need to update https://searchfox.org/mozilla-central/source/tools/lint/eslint/modules.json manually to reflect the changes?
Yes there's only manual changes to that file at the moment, although we were also hoping that with some of the moves towards es6 modules that might go away sometime.
For now, its manual changes, but you only need to list JSMs where there's more than one export, or the exported name is different from the filename.
Comment 8•6 years ago
|
||
Thanks for the feedback!
| Assignee | ||
Comment 9•6 years ago
|
||
Thanks for the review Julian, I tweaked the json file.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=92809d4502696cf4ecf38aadbc9896f328cdf590
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d45b2bb978de
https://hg.mozilla.org/mozilla-central/rev/a3d95f00472e
https://hg.mozilla.org/mozilla-central/rev/271d26f3907e
https://hg.mozilla.org/mozilla-central/rev/84c2a0655cf3
https://hg.mozilla.org/mozilla-central/rev/9ea86b530d01
Description
•