Using `OS.File` for file access is now obsolete and can be replaced by code using IOUtils. Working towards this, in this bug we want remove all OS.File usage from these files: * `browser/base/content/test/static/browser_all_files_referenced.js` * `browser/components/downloads/test/unit/test_DownloadsCommon_getMimeInfo.js` * `browser/components/extensions/test/browser/browser_ext_tabs_saveAsPDF.js` * `browser/components/migration/tests/unit/test_Chrome_bookmarks.js` * `browser/components/migration/tests/unit/test_MigrationUtils_timedRetry.js` The code in question can be [found here](https://searchfox.org/mozilla-central/search?q=OS%5C.%7Cosfile&path=browser%2Fcomponents%2Fdownloads%2Ftest%2F&case=false®exp=true). There is [background information here](https://firefox-source-docs.mozilla.org/dom/ioutils_migration.html) 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 mochitest path/to/file`. You should also check ESLint before commiting: `./mach eslint browser/`. I'm happy to mentor this. Note this bug will be auto-assigned when the first patch is attached, but feel free to comment that you're working on it.
Bug 1738245 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Using `OS.File` for file access is now obsolete and can be replaced by code using IOUtils. Working towards this, in this bug we want remove all OS.File usage from these files: * `browser/base/content/test/static/browser_all_files_referenced.js` * `browser/components/downloads/test/unit/test_DownloadsCommon_getMimeInfo.js` * `browser/components/extensions/test/browser/browser_ext_tabs_saveAsPDF.js` * `browser/components/migration/tests/unit/test_Chrome_bookmarks.js` * `browser/components/migration/tests/unit/test_MigrationUtils_timedRetry.js` The code in question can be [found here](https://searchfox.org/mozilla-central/search?q=OS%5C.%7Cosfile&path=browser%2Fcomponents%2Fdownloads%2Ftest%2F&case=false®exp=true). There is [background information here](https://firefox-source-docs.mozilla.org/dom/ioutils_migration.html) 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 test path/to/file`. You should also check ESLint before commiting: `./mach eslint browser/`. I'm happy to mentor this. Note this bug will be auto-assigned when the first patch is attached, but feel free to comment that you're working on it.