Open Bug 1699041 Opened 4 years ago Updated 2 years ago

Verify the error handling of `SpinEventLoopUntilOrQuit` during shutdown

Categories

(Core :: XPCOM, task)

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.

No longer blocks: 1696397
See Also: → 1696397
Depends on: 1696397
Component: General → XPCOM
Product: Toolkit → Core
See Also: → 1731564

There is a similar case in AppWindow::ShowModal (C++).

See Also: → 1669836

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.

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