Closed
Bug 898315
Opened 11 years ago
Closed 1 year ago
Deprecate and get rid of FileUtils.getDir(..., ..., true)
Categories
(Toolkit :: IOUtils and PathUtils, task)
Toolkit
IOUtils and PathUtils
Tracking
()
RESOLVED
FIXED
116 Branch
Tracking | Status | |
---|---|---|
firefox116 | --- | fixed |
People
(Reporter: Yoric, Assigned: marco)
References
Details
(Keywords: main-thread-io, perf, Whiteboard: [Async:ready])
Attachments
(6 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
FileUtils.getDir(..., ..., true) causes main thread I/O that's hard to spot. We should deprecate the method and eliminate its use.
Assignee | ||
Comment 1•11 years ago
|
||
I've just noticed that FileUtils.getFile is using FileUtils.getDir(..., ..., true) and we have a bunch of consumers of this function!
Reporter | ||
Updated•11 years ago
|
Product: Firefox → Toolkit
Reporter | ||
Comment 2•11 years ago
|
||
Good catch. Filed as bug 920187.
Reporter | ||
Comment 3•11 years ago
|
||
We could do this as a mentored bug, see how awful the result is, and prioritize based on the results.
Updated•11 years ago
|
Whiteboard: [Async] → [Async:ready]
Comment 4•3 years ago
•
|
||
IOUtils and PathUtils offers async alternatives
Updated•3 years ago
|
Updated•3 years ago
|
Component: General → OS.File
Updated•2 years ago
|
Type: defect → task
Updated•1 year ago
|
Component: OS.File → IOUtils and PathUtils
Assignee | ||
Comment 5•1 year ago
|
||
Updated•1 year ago
|
Assignee: nobody → mcastelluccio
Status: NEW → ASSIGNED
Assignee | ||
Comment 6•1 year ago
|
||
Depends on D180562
Assignee | ||
Comment 7•1 year ago
|
||
Depends on D180563
Assignee | ||
Comment 8•1 year ago
|
||
Depends on D180564
Assignee | ||
Comment 9•1 year ago
|
||
Depends on D180566
Assignee | ||
Comment 10•1 year ago
|
||
Depends on D180603
Comment 11•1 year ago
|
||
Pushed by mcastelluccio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/660b84a21af5 Remove two instances of FileUtils.getDir(..., ..., true) usage in async functions. r=barret,application-update-reviewers,nalexander https://hg.mozilla.org/integration/autoland/rev/3ba31405d9d6 Print a deprecation warning for FileUtils.getDir(..., ..., true) even if not starting up or shutting down. r=barret https://hg.mozilla.org/integration/autoland/rev/d108bd53c60b Remove usage of FileUtils.getDir(..., ..., true) in production code. r=barret,application-update-reviewers,devtools-reviewers,nalexander,jdescottes https://hg.mozilla.org/integration/autoland/rev/3999920d4893 Remove main thread IO from Browser Toolbox launcher. r=devtools-reviewers,ochameau
Assignee | ||
Updated•1 year ago
|
Keywords: leave-open
Comment 12•1 year ago
|
||
bugherder |
Comment 13•1 year ago
|
||
Pushed by mcastelluccio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/63ccd00a399a Update all callers of FileUtils.getDir to remove usage of the shouldCreate parameter. r=Gijs,extension-reviewers,application-update-reviewers,nalexander,robwu
Assignee | ||
Comment 14•1 year ago
|
||
Barret, the last patch depends on removing getFile. Do you think that will be done soon? If not, I can just modify my patch to move the directory creation in getFile for now.
Flags: needinfo?(brennie)
Comment 15•1 year ago
|
||
Backed out changeset 63ccd00a399a (Bug 898315) for causing failures in test_no_window_update_restart.py CLOSED TREE
Log: https://treeherder.mozilla.org/logviewer?job_id=419340323&repo=autoland&lineNumber=134271
Backout: https://hg.mozilla.org/integration/autoland/rev/2200d22a37dd7278fa6f151c2d1a1100efaec0e7
Flags: needinfo?(mcastelluccio)
Assignee | ||
Comment 17•1 year ago
|
||
The test is only running on OS X, and I didn't test that in my try push. I'll fix it and reland.
Flags: needinfo?(mcastelluccio)
Comment 18•1 year ago
|
||
Pushed by mcastelluccio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/314d09f09c5e Update all callers of FileUtils.getDir to remove usage of the shouldCreate parameter. r=Gijs,extension-reviewers,application-update-reviewers,nalexander,robwu
Comment 19•1 year ago
|
||
bugherder |
Assignee | ||
Updated•1 year ago
|
Keywords: leave-open
Comment 20•1 year ago
|
||
Pushed by mcastelluccio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/789349491e2f Remove 'shouldCreate' parameter from FileUtils.getDir to avoid footguns. r=Gijs
Comment 21•1 year ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox116:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•