Bug 12624 - showModalDialog should only suspend loading in the calling frame
Summary: showModalDialog should only suspend loading in the calling frame
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-05 16:36 PST by Geoffrey Garen
Modified: 2022-08-02 16:05 PDT (History)
3 users (show)

See Also:


Attachments
Contains a testcase for the bug (1.94 KB, application/octet-stream)
2007-02-05 17:49 PST, Tom Brown
no flags Details

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