Remove osfile.jsm from browser/components/migration/SafariProfileMigrator.sys.mjs
Categories
(Toolkit Graveyard :: OS.File, task)
Tracking
(firefox111 fixed)
Tracking | Status | |
---|---|---|
firefox111 | --- | fixed |
People
(Reporter: beth, Assigned: beth)
References
Details
Attachments
(1 file)
Comment 1•2 years ago
|
||
Hey Angel, this one is going to be a little trickier because you're going to need to do it without having access to the platform that lets you actually use Safari. So I think we'll have you write the patch, and post it for review, but testing is something you might have to leave to myself or others with access to macOS.
There's two usages of the OSFile module here: https://searchfox.org/mozilla-central/rev/d7d2cc647772de15c4c5aa47f74d25d0e379e404/browser/components/migration/SafariProfileMigrator.sys.mjs#401-402
One is the OS.File call, and the other is OS.Path call.
The equivalents are:
- IOUtils.stat (example: https://searchfox.org/mozilla-central/rev/d7d2cc647772de15c4c5aa47f74d25d0e379e404/devtools/client/performance-new/symbolication-worker.js#141)
- PathUtils.join: https://searchfox.org/mozilla-central/rev/d7d2cc647772de15c4c5aa47f74d25d0e379e404/browser/components/migration/ChromeMigrationUtils.sys.mjs#233-236
Neither require any importing, so we can hopefully just remove the OSFile.jsm module import at the end here.
Assignee | ||
Comment 2•2 years ago
|
||
Here is a link to the IOUtils Migration Guide
Assignee | ||
Comment 3•2 years ago
|
||
Comment 4•2 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:barret, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit auto_nag documentation.
Assignee | ||
Updated•2 years ago
|
Comment 7•2 years ago
|
||
bugherder |
Updated•1 year ago
|
Description
•