Closed Bug 1733538 Opened 3 years ago Closed 3 years ago

Replace OS.File with IOUtils in TelemetryControllerParent.jsm

Categories

(Toolkit :: Telemetry, task)

task

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: standard8, Assigned: ash110, Mentored)

References

Details

(Keywords: good-first-bug, Whiteboard: [lang=js])

Attachments

(1 file)

Using OS.File for file access is now obsolete and can be replaced by code using IOUtils. Working towards this,TelemetryControllerParent.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/components/telemetry/. You should also check ESLint before commiting: ./mach eslint toolkit/components/telemetry/.

I'm happy to mentor this. Note this bug will be auto-assigned when the first patch is attached.

Migrated OS.File.read to IOUtils.readUTF8, toolkit/components/telemetry/app/TelemetryControllerParent.jsm:1347. Removed OS from imports.

Assignee: nobody → ashwin.alaparthi
Status: NEW → ASSIGNED
Attachment #9245072 - Attachment description: Bug 1733538 - Migrated OS.File with IOUtils. r=standard8 → Bug 1733538 - Replace OS.File usage with IOUtils in TelemetryControllerParent.jsm. r=standard8
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a7389a86ec78
Replace OS.File usage with IOUtils in TelemetryControllerParent.jsm. r=Standard8
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch

Thank you for working on this Ashwin.

Glad to help, hoping to be more active here

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: