bug 343612, Reset master password confirmation dialog should be opened as a dialog.

patch contributed by Dorian (boissomag@free.fr)
r=kengert
This commit is contained in:
kaie%kuix.de 2007-01-31 17:57:44 +00:00
parent 604da2bce2
commit a23cd46973
3 changed files with 6 additions and 4 deletions

View File

@ -42,7 +42,7 @@ const nsPKCS11ModuleDB = "@mozilla.org/security/pkcs11moduledb;1";
const nsIPKCS11ModuleDB = Components.interfaces.nsIPKCS11ModuleDB;
const nsIPKCS11Slot = Components.interfaces.nsIPKCS11Slot;
const nsIPK11Token = Components.interfaces.nsIPK11Token;
const nsIDialogParamBlock = Components.interfaces.nsIDialogParamBlock;
var params;
var tokenName="";

View File

@ -114,7 +114,8 @@ function ChangePW()
function ResetPW()
{
window.open("chrome://pippki/content/resetpassword.xul",
internal_token.tokenName,
"chrome,centerscreen,modal");
var params = Components.classes[nsDialogParamBlock].createInstance(nsIDialogParamBlock);
params.SetString(1,internal_token.tokenName);
window.openDialog("chrome://pippki/content/resetpassword.xul", "",
"chrome,centerscreen,modal", params);
}

View File

@ -36,6 +36,7 @@
const nsPK11TokenDB = "@mozilla.org/security/pk11tokendb;1";
const nsIPK11TokenDB = Components.interfaces.nsIPK11TokenDB;
const nsIDialogParamBlock = Components.interfaces.nsIDialogParamBlock;
var tokenName;