Replace OS.File with IOUtils in XPIInstall.jsm, and drop usage of osfile.jsm
Categories
(Toolkit :: Add-ons Manager, task, P3)
Tracking
()
People
(Reporter: standard8, Assigned: mathew.hodson, Mentored)
References
Details
(Whiteboard: [lang=js][good-next-bug])
Attachments
(1 file)
Using OS.File
for file access is now obsolete and can be replaced by code using IOUtils. Working towards this,XPIInstall.jsm
is loaded on startup and accesses OS.File
. Fixing this should help a little towards startup performance.
The code in question can be found here.
There is background information here about how to migrate from OS.File
to IOUtils
. If you have questions, please ask.
To run the tests after you've built, you can run ./mach xpcshell-test toolkit/mozapps/extensions/
. You should also check ESLint before commiting: ./mach xpcshell-test toolkit/mozapps/extensions/
.
I'm happy to mentor this. Note this bug will be auto-assigned when the first patch is attached.
Comment 1•3 years ago
|
||
Changing severity to NA because of it's a task.
Reporter | ||
Comment 2•3 years ago
|
||
Expanding scope slightly to also include dropping osfile.jsm completely. This shouldn't be too much extra work - OS.Path.join
can be replaced with PathUtils.join
with no need to change the parameters.
Assignee | ||
Comment 3•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
Can you take another look at this? I believe I addressed the requested changes.
Reporter | ||
Comment 6•3 years ago
|
||
Mathew, thank you for working on this, it is great to get it landing. I've just triggered the landing to autoland.
Comment 8•3 years ago
|
||
bugherder |
Comment 10•3 years ago
|
||
Backed out for causing Bug 1736189
Backout link: https://hg.mozilla.org/integration/autoland/rev/772dfe279def087d275150ef1cc57350c05cdae2
Assignee | ||
Updated•3 years ago
|
Reporter | ||
Comment 11•3 years ago
|
||
Mathew, do you have access to the try server? I'm tempted to try a few things out on try server and see if we can narrow this issue down a bit.
Assignee | ||
Comment 12•3 years ago
|
||
No I don't have access.
Comment 13•3 years ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/772dfe279def087d275150ef1cc57350c05cdae2
Reporter | ||
Comment 14•3 years ago
|
||
This doesn't need to block bug 986145 directly, it already blocks bug 1703357 which blocks bug 986145.
Updated•3 years ago
|
Comment 15•3 years ago
|
||
Comment 16•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Description
•