Verify the error handling of `SpinEventLoopUntilOrQuit` during shutdown
Categories
(Core :: XPCOM, task)
Tracking
()
People
(Reporter: jstutte, Unassigned)
References
(Blocks 1 open bug)
Details
Verify the error handling of SpinEventLoopUntilOrQuit
during shutdown (currently we just return NS_OK). We could distinct the case "called before shutdown has started" from the case "calling during shutdown", the latter is probably unwanted (think of some JS code triggered by a shutdown observer). This might need some cleanup on JS side, too. Or we might just want to add some assertions.
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Comment 1•2 years ago
|
||
There is a similar case in AppWindow::ShowModal
(C++).
Reporter | ||
Comment 2•2 years ago
•
|
||
An argument for always returning an error might also be that this hopefully speeds up any script processing we have on the stack while this happens (throwing an exception) rather than trying to do something meaningful with the never set result of a modal dialog. FWIW: Also in the C++ case seen in the wild we come from JS on the stack.
Description
•