RESOLVED WONTFIX 35052
When using showModalDialog, new dialog isn't modal until click fires
https://bugs.webkit.org/show_bug.cgi?id=35052
Summary When using showModalDialog, new dialog isn't modal until click fires
joyannefoster
Reported 2010-02-17 13:04:49 PST
If you launch a new dialog with showModalDialog in Safari 4.0.4, the new dialog isn't truly modal until you click on it or the parent. The effect is, you can click on something on the parent window 1 time. Additionally, you have to click on the child window 2 times to get it to respond. The first click seems to click on the parent window (in the background) as if it was clicked behind the dialog. To test: Open a simple HTML page (code below) Click on the test button 1 time Allow modal dialog to popup. Now, highlight the dfdfdf text on the parent dialog. Notice that once you release the mouse button, you can't un-highlight or do anything else to the parent until the child is closed. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>eSite Builder - Host Window</title> <script type="text/javascript"> function doTest() { window.showModalDialog("/test.html",null,"dialogHeight: 444px; dialogWidth: 444px; edge: Raised; center: Yes; resizable: No; help: No; status: No;"); } </script> </head> <body > <form> <input type="button" value="test" onclick="doTest();" style="position:absolute;left:333px;top:200px;background-color:red;"> dfdfdf </form> </body> </html>
Attachments
test file (9.22 KB, text/html)
2010-02-17 13:05 PST, joyannefoster
no flags
joyannefoster
Comment 1 2010-02-17 13:05:32 PST
Created attachment 48928 [details] test file
joyannefoster
Comment 2 2010-02-18 06:41:32 PST
FYI, this appears to be on Safari 4 on Windows only
Ahmad Saleem
Comment 3 2022-07-31 02:28:19 PDT
showModalDialog support is gone from other browser and recently from Webkit Github source as well: https://github.com/WebKit/WebKit/commit/c4bb4d1af89e1ef5f57ef1b1cf7b65ce62c30ba5 Do we need to work on this? Thanks!
Note You need to log in before you can comment on or make changes to this bug.