Bug 26213 - Confirm dialog displays second time after resetting select to default value and pressing cancel in confirm dialog
Summary: Confirm dialog displays second time after resetting select to default value a...
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 525.x (Safari 3.2)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2009-06-05 02:18 PDT by Tore B. Krudtaa
Modified: 2009-06-09 05:33 PDT (History)
0 users

See Also:

Testcase (3.02 KB, text/html)
2009-06-05 02:19 PDT, Tore B. Krudtaa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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]

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:

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: