Skip to content

Default state for unhandledPromptBehavior should be "Dismiss and Notify" #1276

@whimboo

Description

@whimboo

This issue has been caught by @andreastt while reviewing my patch on https://bugzilla.mozilla.org/show_bug.cgi?id=1264259.

In the patch which enables the prompt behavior support in Firefox I used "Dismiss and Notify" as default state because that is what I thought should be used if the unhandledPromptBehavior capability hasn't been specified for the New Session command.

Then here is what the spec lists when handling such an unexpected alert:

* missing value default state
* not in the table of simple dialogs
      - Dismiss the current user prompt.
      - Return an annotated unexpected alert open error. 

There is the missing value default state used, and no-where is a mention that New Session should set a valid default state. Benefit for that would be that this command could also return the actual mode in the active capabilities, so that clients are informed about the behavior in use.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions