Quitting with a file picker visible → stuck shutdown

NEW
Unassigned

Status

()

Core
General
6 years ago
6 years ago

People

(Reporter: Jesse Ruderman, Unassigned)

Tracking

({hang, testcase})

Trunk
x86_64
Mac OS X
hang, testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
Created attachment 631023 [details]
testcase

1. Load the testcase
2. Click the button. (Opens a new window.)
3. Click the other button. (Closes the new window and opens a file picker.)
4. Press ⌘Q to Quit.

Result: Firefox shuts down partway, asserts, and gets into a state where the only thing you can do is force-quit the process.

###!!! ASSERTION: Don't call nsAppShell::Exit() from a modal event loop!: '!cocoaModal', file widget/cocoa/nsAppShell.mm, line 797

Probably related to bug 624061.
(Reporter)

Comment 1

6 years ago
Once Firefox is in this state...

Clicking the dock icon:

************************************************************
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "Component returned failure code: 0x8046001e [nsIWindowWatcher.openWindow]"  nsresult: "0x8046001e (<unknown>)"  location: "JS frame :: resource:///components/nsBrowserContentHandler.js :: openWindow :: line 216"  data: no]
************************************************************

Choosing "Quit" from the dock menu:

************************************************************
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIObserverService.removeObserver]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource:///modules/DownloadsCommon.jsm :: DD_terminateDataLink :: line 231"  data: no]
************************************************************
You need to log in before you can comment on or make changes to this bug.