Interface nsIAlertActionType

Hierarchy

Properties

action: string

Returns a string identifying a user action to be displayed on the alert.

This string is an opaque identifier that identifies an action in potential callbacks; it is not displayed to the user.

iconURL: string

Returns a string containing the URL of an icon to display with the action.

title: string

Returns a string containing action text to be shown to the user.

windowsSystemActivationType: boolean

On Windows, chrome-privileged notifications -- i.e., those with a non-actionable principal -- can have actions that are activated by Windows and not processed by Firefox. When windowsSystemActivationType is true, we request Windows to process action. At the time of writing, Windows recognizes the following actions:

  • action="dismiss" dismisses the alert entirely.
  • action="snooze" snoozes the alert, generally making it disappear before reappearing a Windows-determined amount of time later.

On non-Windows, this field is ignored.

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

Generated using TypeDoc