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()">