This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28761 - window.prompt dismiss should behave as if cancel were clicked, not accept
Summary: window.prompt dismiss should behave as if cancel were clicked, not accept
Status: RESOLVED FIXED
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 20860
  Show dependency treegraph
 
Reported: 2015-06-04 18:21 UTC by John Jansen
Modified: 2015-10-26 05:50 UTC (History)
2 users (show)

See Also:


Attachments

Description John Jansen 2015-06-04 18:21:21 UTC
"This will dismiss the modal. If the modal is an alert, this must be equivalent to calling accept() on the dialog"

In the browsers I checked, when I click "OK" to the dialog, the value gets set to the text box. When I click the "X" to dismiss it, the value is Null. When I click "Cancel" the value is Null.