diff --git a/extensions/help/resources/content/helpSecurityOverlay.xul b/extensions/help/resources/content/helpSecurityOverlay.xul index 484d40a5a346..1c6890d4afb7 100644 --- a/extensions/help/resources/content/helpSecurityOverlay.xul +++ b/extensions/help/resources/content/helpSecurityOverlay.xul @@ -145,7 +145,8 @@ ondialoghelp="openHelp('cert_backup_pwd');"/> - + - diff --git a/security/manager/pki/resources/content/newserver.js b/security/manager/pki/resources/content/newserver.js index b8b0044f6b6b..6f4d616c2421 100644 --- a/security/manager/pki/resources/content/newserver.js +++ b/security/manager/pki/resources/content/newserver.js @@ -69,37 +69,13 @@ function onLoad() setText("intro", intro); setText("reason3", reason3); setText("question", question); - - // Focus the accept button explicitly, because the dialog onLoad handler - // focuses the first focusable element in the dialog, which is the "View - // Certificate" button. - // Never explicitly focus buttons on OS X, as this breaks default focus - // handling, outlined in dialog.xml -#ifndef XP_MACOSX - document.documentElement.getButton("accept").focus(); -#endif } function doOK() { - var selectedID = document.getElementById("whatnow").selectedItem.id; - - if (selectedID == "refuse") { - dialogParams.SetInt(1,0); - } - else { - dialogParams.SetInt(1,1); - - // 0 = accept perm, 1 = accept for this session - var userchoice = 1; - - if (selectedID == "remember") { - userchoice = 0; - } - - dialogParams.SetInt(2, userchoice); - } - + dialogParams.SetInt(1, 1); + var selectedItem = document.getElementById("whatnow").selectedItem; + dialogParams.SetInt(2, parseInt(selectedItem.value)); return true; } diff --git a/security/manager/pki/resources/content/newserver.xul b/security/manager/pki/resources/content/newserver.xul index 460c72c70850..a6d391ebcfa6 100644 --- a/security/manager/pki/resources/content/newserver.xul +++ b/security/manager/pki/resources/content/newserver.xul @@ -51,9 +51,12 @@ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" style="width: 47em;" onload="onLoad();" - buttons="accept,cancel" + buttons="accept,cancel,extra2" + defaultButton="cancel" + buttonlabelextra2="&newserver.examine;" ondialogaccept="return doOK();" - ondialogcancel="return doCancel();"> + ondialogcancel="return doCancel();" + ondialogextra2="viewCert();">