mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
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:
parent
3613ad60ad
commit
0ea5801983
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user