Safari returns empty string if Javascript prompt is canceled

Originator:j.jeising
Number:rdar://11365874 Date Originated:Wed, 02 May 2012 19:53:16 GMT
Status:Duplicate Resolved:
Product:Safari Product Version:5.1.5
Classification:UI/Usability Reproducible:
 
02-May-2012 09:53 PM Jannes Jeising:
Summary:
Safari returns an empty string if a Javascript prompt-Dialog is canceled. An empty string is also returned, if the user enters no text in the field.

Steps to Reproduce:
Use Javascript or the Console in the Inspector.

> prompt('FooBar');

Click cancel or press [Esc].

Expected Results:

null

Actual Results:

""

Regression:
Worked in Safari 5.0 (?).

05-May-2012 01:42 AM

Duplicate of rdar://problem/10085011

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!