Closed
Bug 1677168
Opened 5 years ago
Closed 5 years ago
nsFilePicker cleanup
Categories
(Core :: Widget: Win32, task)
Tracking
()
RESOLVED
FIXED
85 Branch
| Tracking | Status | |
|---|---|---|
| firefox85 | --- | fixed |
People
(Reporter: bugzilla, Assigned: bugzilla)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
There is a bunch of stuff in nsFilePicker that is either crufty, redundant, or didn't work right. I'd like to land this work as a prereq to moving file pickers out of process.
| Assignee | ||
Comment 1•5 years ago
|
||
| Assignee | ||
Comment 2•5 years ago
|
||
- We replace
mLastUsedUnicodeDirectoryand its manual memory managemnt with a
UniquePtrnamedsLastUsedUnicodeDirectory - We remove
AutoRestoreWorkingPath, as it never was actually necessary and
was left in, "just in case." - We remove the timeout stuff, as that never actually worked, at least with
the current implementation of the file picker; perhaps it worked with the
legacy file picker APIs, but it doesn't work with the Vista+, COM-based stuff. - We also get rid of
IFileDialogEvents, as all of that stuff was needed for
timeouts. It also adds additional complexity that impairs our ability to
implement out-of-process file pickers in a future bug. - We replace
do_CreateInstance("@mozilla.org/file/local;1")with
NS_NewLocalFile. - We add
HRESULTerror handling to all of the method invocations on COM
interfaces. - We replace
CLSCTX_INPROCwithCLSCTX_INPROC_SERVERinCoCreateInstance
calls. - We remove
CoInitializeandCoUninitializecalls. Those have been
unnecessary ever since we addedmscom::ProcessRuntimeinstantiation during
startup.
Pushed by aklotz@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2d09267457f7
nsFilePicker cleanup; r=mhowell
Comment 4•5 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox85:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•