Open file dialogs prevent shutdown until closed
Categories
(Core :: Widget: Win32, defect, P5)
Tracking
()
People
(Reporter: rkraesig, Assigned: rkraesig)
References
(Depends on 1 open bug)
Details
Attachments
(2 files)
Steps to reproduce:
- Open two browser windows.
- In the first window, go to
data:text/html,<input type=file>. Click the button, but do not select a file. - In the second window, press Ctrl+Shift+Q to shut down Firefox.
Actual behavior:
Firefox closes all windows except for the file dialog, which must be manually dismissed.
Expected behavior:
Firefox closes all windows, including any open file dialogs (possibly warning the user and requesting confirmation first).
| Assignee | ||
Comment 1•2 years ago
|
||
This bug is not, strictly speaking, dependent on bug 1677170; but it may be easier to implement after or as part of that bug.
| Assignee | ||
Comment 3•2 years ago
•
|
||
This doesn't necessarily depend on bug 1870660: once file-pickers are consistently opened out-of-process, we can just kill their host process. That much is done automatically in release builds, but may need some extra work otherwise — and we also have to take care to disable the fallback to in-process pickers at that point, if they're still active.
(At present all our open file-dialogs are opened by the same host-process, so we can't use that mechanism to implement an individualized Close() function. For shutdown, though, that should be fine.)
| Assignee | ||
Comment 5•1 year ago
|
||
If a path was not provided to SendFailureNotification while
file-dialog logging was active, a crash would occur. Check for and
handle this case.
Updated•1 year ago
|
| Assignee | ||
Comment 6•1 year ago
|
||
File dialogs are opened on a separate thread, but these threads can't be
convinced to wind down normally. If they're still around at process
shutdown time (as may be the case at session-end), skip any remaining
cleanup and just kill the process.
Description
•