Bug 26213

Summary: Confirm dialog displays second time after resetting select to default value and pressing cancel in confirm dialog
Product: WebKit Reporter: Tore B. Krudtaa <krudtaa>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED ---    
Severity: Normal    
Priority: P2    
Version: 525.x (Safari 3.2)   
Hardware: PC   
OS: Windows XP   
Attachments:
Description Flags
Testcase none

Description Tore B. Krudtaa 2009-06-05 02:18:25 PDT
If you have a select in your page that run javascript when onchange

Then if called function displays a confirm dialog, and you then press cancel button in that confirm dialog, and then afterwards click anywhere on the page, then the confirm dialog displays itself again.

Note that the above happens if the select was reset to its original value when the cancel button in the dialog was pressed.

The confirm dialog should not display the second time.

Running same javascript code for the OK button in the confirm dialog does not produce this error.

Please see attachment to test the bug.
Comment 1 Tore B. Krudtaa 2009-06-05 02:19:19 PDT
Created attachment 30999 [details]
Testcase

Test the bug using this file
Comment 2 Tore B. Krudtaa 2009-06-05 04:17:29 PDT
I managed to get the bug tested here as well:
http://www.crossbrowsertesting.com

using Mac OSX 10.5 and Safari 3.2.1

This bug is present there as well.

So this bug happens in:
Safari (Windows)
Safari (Mac)
Chrome (Windows)
Comment 3 Tore B. Krudtaa 2009-06-09 05:33:21 PDT
This bug is also in 

Safari for win, version: 4.0 (530.17)

and latest version of Chrome... version: 2.0.172.30