Interface nsIFormFillControllerType

nsIFormFillController is an interface for controlling form fill behavior on HTML documents. Any number of docShells can be controller concurrently. While a docShell is attached, all HTML documents that are loaded within it will have a focus listener attached that will listen for when a text input is focused. When this happens, the input will be bound to the global nsIAutoCompleteController service.

Hierarchy

Properties

focusedInput: HTMLInputElement

The input element the form fill controller is currently bound to.

passwordPopupAutomaticallyOpened: boolean

Whether the autocomplete popup on a password field was automatically opened by the form fill controller (upon focus).

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

  • Parameters

    • document: Document
    • popup: Element

    Returns void

  • Parameters

    • document: Document

    Returns void

  • Returns true if aInput is managed by the login manager.

    Parameters

    • aInput: HTMLInputElement

      The HTML element to tag

    Returns boolean

  • Mark the specified element as being managed by a form autofill component. Autocomplete requests will be handed off to the autofill component.

    Parameters

    • aInput: HTMLInputElement

      The HTML element to mark

    Returns void

  • Mark the specified element as being managed by password manager. Autocomplete requests will be handed off to the password manager, and will not be stored in form history.

    Parameters

    • aInput: HTMLInputElement

      The HTML element to tag

    Returns void

  • Open the autocomplete popup, if possible.

    Returns void

Generated using TypeDoc