Bug 307840: Having Clear Private Data set to run at the closing of Firefox causes the program to hang in Linux [@ nsDragService::Observe], patch by Giorgio Maone <g.maone@informaction.com>, r=mconnor

This commit is contained in:
gavin%gavinsharp.com 2005-10-10 21:53:40 +00:00
parent 3613ad60ad
commit 0ea5801983

View File

@ -106,7 +106,19 @@ BrowserGlue.prototype = {
// profile shutdown handler (contains profile cleanup routines)
_onProfileShutdown: function()
{
this.Sanitizer.onShutdown();
// here we enter last survival area, in order to avoid multiple
// "quit-application" notifications caused by late window closings
const appStartup = Components.classes['@mozilla.org/toolkit/app-startup;1']
.getService(Components.interfaces.nsIAppStartup);
try {
appStartup.enterLastWindowClosingSurvivalArea();
this.Sanitizer.onShutdown();
} catch(ex) {
} finally {
appStartup.exitLastWindowClosingSurvivalArea();
}
},
// returns the (cached) Sanitizer constructor