I think there may be some other corner cases (if the user decides to confirm the quit with a download running we still still show a dialog here), but that is harder to fix and this is a start. Original Revision: https://phabricator.services.mozilla.com/D254291 Differential Revision: https://phabricator.services.mozilla.com/D258213