[Webkit-unassigned] [Bug 48231] New: Cannot close modal windows from javascript

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 25 05:04:33 PDT 2010


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

           Summary: Cannot close modal windows from javascript
           Product: WebKit
           Version: 525.x (Safari 3.2)
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: cmhofman at gmail.com


A modal window that was created using javascript showModalDialog() cannot be closed from javascript close().

The reason is that it puts a delayed _closeWindow message with the default run loop, however this will never be called when there is a modal window currently active.

See bug 40036 for more details. That bug was closed because some other bug (bug 35350) was resolved in a different way. However, that is no reason to discard the bug, because the problem is still relevant for actual applications using WebKit (the test from bug 35350 is not the only place where modal dialogs are used, they're also used in the REAL WORLD, where they still not work).

I don't know what Safari does to make modal windows work, but you could have a look in their code to fix this.

-- 
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