Bug 12624

Summary: showModalDialog should only suspend loading in the calling frame
Product: WebKit Reporter: Geoffrey Garen <ggaren>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: ahmad.saleem792, ap, rniwa
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
Contains a testcase for the bug none

Description Geoffrey Garen 2007-02-05 16:36:05 PST
tom_5200 reported on IRC that IE, though it suspends events in all frames, only suspends loading in the calling frame. So, if a subframe calls showModalDialog, loads in the main frame should continue.

I haven't tested this.
Comment 1 Tom Brown 2007-02-05 17:49:23 PST
Created attachment 12957 [details]
Contains a testcase for the bug

Test case:
1) Open "modaltest.html" in the browser.
2) Click the "modal test" button.
3) In the modal dialog, click the "async" button.

Expected behavior: The request should be asynchronously executed immediately in the context of the main window, and an alert box should appear with the text "Asynchronous AJAX test ok". This is the behavior in IE.

Actual behavior: The request is not executed until the modal dialog is closed. Despite being performing the delayed request, no "onreadystatechanged" events are fired to the browser.
Comment 2 Ahmad Saleem 2022-08-02 16:05:28 PDT
showModalDialog support has been removed from upstream.

https://github.com/WebKit/WebKit/commit/c4bb4d1af89e1ef5f57ef1b1cf7b65ce62c30ba5

Hence, I am marking this bug as "RESOLVED WONTFIX". Thanks!