mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
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:
parent
604da2bce2
commit
a23cd46973
@ -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="";
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -36,6 +36,7 @@
|
||||
|
||||
const nsPK11TokenDB = "@mozilla.org/security/pk11tokendb;1";
|
||||
const nsIPK11TokenDB = Components.interfaces.nsIPK11TokenDB;
|
||||
const nsIDialogParamBlock = Components.interfaces.nsIDialogParamBlock;
|
||||
|
||||
var tokenName;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user