[Webkit-unassigned] [Bug 29459] showModalDialog does not work when launched from a modal window

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jan 8 21:08:06 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=29459





--- Comment #2 from Darth <priyajeet.hora at gmail.com>  2011-01-08 21:08:06 PST ---
One can test this easily with the following code

<!doctype html>
<html>
<head>
    <script>
        function openModal() {
            var mod = window.showModalDialog("test.html");
            // JS execution should lock out till above window is closed.
        }

    </script>
</head>
<body>
    <button type='button' onclick='openModal();'>Click me</button>
</body>
</html>


In Safari:
1] Click the button to launch a window.
2] Observe you cannot do anything on the parent, everything is suppressed and modal window has full focus even when you go to another application and come back. (Note that modal window locks out other tabs too which is undesirable and probably why Chrome hasn't implemented this locking out.)

3] Move this child to the side and click the button on it.
4] Observe this new child doesn't suppress its opener window and you can still push the button on the opener window that should be suppressed. Also focus can switch between the 2 child windows.

Chrome has more issues that safari and one needs to rely on stuff like
http://code.google.com/p/chromium/issues/detail?id=16045#c28

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list