Bug 525850 - Design UI for crashed out-of-process tabs (strings only) [r=mbrubeck]

This commit is contained in:
Mark Finkle 2010-11-12 16:17:47 -05:00
parent 4530effef8
commit fc88684840
2 changed files with 3 additions and 1 deletions

View File

@ -2093,6 +2093,7 @@ var ContentCrashObserver = {
// will be reloaded when selected.
let title = Elements.browserBundle.getString("tabs.crashWarningTitle");
let message = Elements.browserBundle.getString("tabs.crashWarningMsg");
let submitText = Elements.browserBundle.getString("tabs.crashSubmitReport");
let reloadText = Elements.browserBundle.getString("tabs.crashReload");
let closeText = Elements.browserBundle.getString("tabs.crashClose");
let buttons = Ci.nsIPrompt.BUTTON_POS_1_DEFAULT +
@ -2100,7 +2101,7 @@ var ContentCrashObserver = {
(Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_1);
this._waitingToClose = true;
let reload = Services.prompt.confirmEx(window, title, message, buttons, closeText, reloadText, null, null, { value: false });
let reload = Services.prompt.confirmEx(window, title, message, buttons, closeText, reloadText, null, submitText, { value: true });
if (reload) {
// Fire a TabSelect event to kick start the restore process
let event = document.createEvent("Events");

View File

@ -176,6 +176,7 @@ tabs.closeWarningPromptMe=Warn me when I attempt to close multiple tabs
tabs.crashWarningTitle=Sorry!
tabs.crashWarningMsg=Something went wrong while displaying a web page.
tabs.crashSubmitReport=Send Mozilla a crash report
tabs.crashClose=Close tab
tabs.crashReload=Reload tab