Backing out the patch for bug 342885 per comment #34

git-svn-id: svn://10.0.0.236/trunk@219966 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dietrich%mozilla.com
2007-02-12 03:07:55 +00:00
parent 1f0e8c3175
commit 26143af2e4
2 changed files with 0 additions and 12 deletions

View File

@@ -72,7 +72,6 @@ const PRIVACY_FULL = 2;
const OBSERVING = [
"domwindowopened", "domwindowclosed",
"quit-application-requested", "quit-application-granted",
"quit-application-roughly", // XXXzeniko work-around for bug 333907
"quit-application", "browser:purge-session-history"
];
@@ -283,7 +282,6 @@ SessionStoreService.prototype = {
this._loadState = STATE_QUITTING;
break;
case "quit-application":
case "quit-application-roughly":
if (aData == "restart")
this._prefBranch.setBoolPref("sessionstore.resume_session_once", true);
this._loadState = STATE_QUITTING; // just to be sure

View File

@@ -5251,16 +5251,6 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
break;
#endif
case WM_ENDSESSION:
// XXXzeniko allow components to deal with a rough shutdown as long as there's no
// clean fix for bug 333907
if (wParam) {
nsCOMPtr<nsIObserverService> observerService
= do_GetService("@mozilla.org/observer-service;1");
if (observerService)
observerService->NotifyObservers(nsnull, "quit-application-roughly", nsnull);
}
break;
#ifdef WINCE
case WM_HIBERNATE: