nsISupports
Last changed in Gecko 1.9 (Firefox 3)Implemented by: @mozilla.org/login-manager/prompter;1. To call this service, use:
var loginManagerPrompter = Components.classes["@mozilla.org/login-manager/prompter;1"]
.getService(Components.interfaces.nsILoginManagerPrompter);
void init(in nsIDOMWindow aWindow); |
void promptToChangePassword(in nsILoginInfo aOldLogin, in nsILoginInfo aNewLogin); |
void promptToChangePasswordWithUsernames([array, size_is(count)] in nsILoginInfo logins, in PRUint32 count, in nsILoginInfo aNewLogin); |
void promptToSavePassword(in nsILoginInfo aLogin); |
Initialize the prompter. Must be called before using other interfaces.
void init( in nsIDOMWindow aWindow );
aWindowAsk the user if they want to change a login's password. If the user consents, modifyLogin() will be called.
void promptToChangePassword( in nsILoginInfo aOldLogin, in nsILoginInfo aNewLogin );
aOldLoginaNewLoginAsk the user if they want to change the password for one of multiple logins, when the caller can not determine exactly which login should be changed. If the user consents, modifyLogin() will be called.
void promptToChangePasswordWithUsernames( [array, size_is(count)] in nsILoginInfo logins, in PRUint32 count, in nsILoginInfo aNewLogin );
loginscountaNewLoginAsk the user if they want to save a login (Yes, Never, Not Now)
void promptToSavePassword( in nsILoginInfo aLogin );
aLogin