Closed Bug 1746667 Opened 3 years ago Closed 3 years ago

PathUtils: Make `get{ProfileDir,LocalProfileDir,TempDir}` sync on main thread

Categories

(Toolkit Graveyard :: OS.File, enhancement, P1)

enhancement

Tracking

(firefox98 fixed)

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: beth, Assigned: beth)

References

Details

Attachments

(2 files)

All of these methods have to do work on the main thread to get their paths. If we're on the main thread anyway, it would be nice if these methods weren't async and we can leave the async methods for off-main-thread workers and such.

Depends on: 1745427
Assignee: nobody → brennie
Priority: P4 → P1
Pushed by brennie@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f58bf601f0f5 Make PathUtils path lookups sync on main thread r=Gijs https://hg.mozilla.org/integration/autoland/rev/c9fa8ed3dde6 Replace PathUtils.getTempDir with PathUtils.tempDir in IOUtils tests r=Gijs
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
Blocks: 1753369
Regressions: 1758239
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: