Change profile count to use IOUtils
Categories
(Firefox :: Shell Integration, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox84 | --- | fixed |
People
(Reporter: bytesized, Assigned: masterwayz, Mentored)
References
Details
(Whiteboard: [lang=js])
Attachments
(1 external file)
The profile count telemetry collection (added in Bug 1647422) currently uses OS.File. It should be pretty simple to switch it over.
Make sure to also change the test code (test_ProfileCounter.js). It simulates some I/O errors for testing, and they will need to be switched over to look more like the errors we will get from IOUtils (which I believe will are DOMExceptions),
Comment 1•6 years ago
|
||
To use IOUtils, we should look at replacing these instances of OS.File https://searchfox.org/mozilla-central/rev/d25eb00ab4e90cc0130cd18f303a04cc2a2f8409/browser/modules/BrowserUsageTelemetry.jsm#422,424, as well as the errors mentioned above. We should be able to use the equivalent IOUtils functions https://searchfox.org/mozilla-central/rev/d25eb00ab4e90cc0130cd18f303a04cc2a2f8409/dom/chrome-webidl/IOUtils.webidl#44,62
| Assignee | ||
Comment 2•6 years ago
|
||
Updated•6 years ago
|
Comment 4•6 years ago
|
||
| bugherder | ||
Description
•