From e3e6fd05648f959333c84c06a41e786bc9830cbd Mon Sep 17 00:00:00 2001 From: "bsmedberg%covad.net" Date: Wed, 12 Oct 2005 00:29:11 +0000 Subject: [PATCH] Bug 311503 - Safe mode should offer "cancel" option (now named "Exit") r=mconnor/beltzner --- browser/base/content/safeMode.js | 7 ++++++- browser/base/content/safeMode.xul | 15 ++++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/browser/base/content/safeMode.js b/browser/base/content/safeMode.js index e9b6c9f17a1..4f946167342 100644 --- a/browser/base/content/safeMode.js +++ b/browser/base/content/safeMode.js @@ -78,4 +78,9 @@ function onOK() { restartApp(); } - \ No newline at end of file + +function onCancel() { + var appStartup = Components.classes["@mozilla.org/toolkit/app-startup;1"] + .getService(Components.interfaces.nsIAppStartup); + appStartup.quit(appStartup.eForceQuit); +} diff --git a/browser/base/content/safeMode.xul b/browser/base/content/safeMode.xul index dd6fe300801..2d900f4aad6 100644 --- a/browser/base/content/safeMode.xul +++ b/browser/base/content/safeMode.xul @@ -43,6 +43,8 @@ %brandDTD; %safeModeDTD; + +%browserDTD; ]> @@ -50,11 +52,18 @@ + ondialogaccept="onOK()" + ondialogcancel="onCancel()" + ondialogextra1="window.close()">