WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsILoginManagerPrompter

IID:68b3cb59-51b8-4c57-bd7f-b2ce955a593d
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

void init ( nsIDOMWindow window ) void promptToChangePassword ( nsILoginInfo oldLogin , nsILoginInfo newLogin ) void promptToChangePasswordWithUsernames ( nsILoginInfo logins , PRUint32 count , nsILoginInfo newLogin ) void promptToSavePassword ( nsILoginInfo login )

void init ( nsIDOMWindow window )

Initialize the prompter. Must be called before using other interfaces.

Arguments:
window: The in which the user is doing some login-related action that's resulting in a need to prompt them for something. The prompt will be associated with this window (or, if a notification bar is being used, topmost opener in some cases).

void promptToChangePassword ( nsILoginInfo oldLogin , nsILoginInfo newLogin )

Ask the user if they want to change a login's password. If the user consents, modifyLogin() will be called.

Arguments:
oldLogin: The existing login (with the old password).
newLogin: The new login.

void promptToChangePasswordWithUsernames ( nsILoginInfo logins , PRUint32 count , nsILoginInfo newLogin )

Ask the user if they want to change the password for one of multiple logins, when the caller can't determine exactly which login should be changed. If the user consents, modifyLogin() will be called.

Note: Because the caller does not know the username of the login to be changed, newLogin.username and newLogin.usernameField will be set (using the user's selection) before modifyLogin() is called.

Arguments:
logins: An array of existing logins.
count: (length of the array)
newLogin: The new login.

void promptToSavePassword ( nsILoginInfo login )

Ask the user if they want to save a login (Yes, Never, Not Now)

Arguments:
login: The login to be saved.

Reference documentation is generated from Mozilla's source.