Interface nsILoginManagerPrompterType

Hierarchy

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

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

    Parameters

    • aBrowser: Element

      The browser of the webpage request that triggered the prompt.

    • aOldLogin: nsILoginInfo

      The existing login (with the old password).

    • aNewLogin: nsILoginInfo

      The new login.

    • dismissed: boolean

      A boolean value indicating whether the save logins doorhanger should be dismissed automatically when shown.

    • notifySaved: boolean
    • autoSavedLoginGuid: string

      A string guid value for the old login to be removed if the changes match it to a different login

    • autoFilledLoginGuid: string

      A string guid value for the login which was autofilled into the form

    • possibleValues: any

      Contains values from anything that we think, but are not sure, might be a username or password. Has two properties, 'usernames' and 'passwords'.

    Returns nsIPromptInstance

  • 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.

    Parameters

    • aBrowser: Element

      The browser of the webpage request that triggered the prompt.

    • logins: invalid

      An array of existing logins.

    • aNewLogin: nsILoginInfo

      The new login.

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

    Returns nsIPromptInstance

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

    Parameters

    • aBrowser: Element

      The browser of the webpage request that triggered the prompt.

    • aLogin: nsILoginInfo

      The login to be saved.

    • dismissed: boolean

      A boolean value indicating whether the save logins doorhanger should be dismissed automatically when shown.

    • notifySaved: boolean

      A boolean value indicating whether the notification should indicate that a login has been saved

    • autoFilledLoginGuid: string

      A string guid value for the login which was autofilled into the form

    • possibleValues: any

      Contains values from anything that we think, but are not sure, might be a username or password. Has two properties, 'usernames' and 'passwords'.

    Returns nsIPromptInstance

Generated using TypeDoc