Open Bug 1837008 Opened 2 years ago Updated 1 year ago

Open file dialogs prevent shutdown until closed

Categories

(Core :: Widget: Win32, defect, P5)

Desktop
Windows
defect

Tracking

()

ASSIGNED

People

(Reporter: rkraesig, Assigned: rkraesig)

References

(Depends on 1 open bug)

Details

Attachments

(2 files)

Steps to reproduce:

  1. Open two browser windows.
  2. In the first window, go to data:text/html,<input type=file>. Click the button, but do not select a file.
  3. 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).

This bug is not, strictly speaking, dependent on bug 1677170; but it may be easier to implement after or as part of that bug.

See Also: → 1677170
Duplicate of this bug: 1853936
Depends on: 1858225
Depends on: 1870660

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.)

Depends on: 1677170
No longer depends on: 1870660, 1858225
See Also: 1677170
Duplicate of this bug: 1911706

If a path was not provided to SendFailureNotification while
file-dialog logging was active, a crash would occur. Check for and
handle this case.

Assignee: nobody → rkraesig
Status: NEW → ASSIGNED

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.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: