Closed Bug 454772 Opened 16 years ago Closed 15 years ago

"load" event isn't sent if multiple dialogs are opened with "centerscreen" flag

Categories

(Core :: XUL, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 321099

People

(Reporter: jwkbugzilla, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(1 file)

356 bytes, application/vnd.mozilla.xul+xml
Details
Attached file Testcase
Apparently, dialogs sometimes won't get a "load" event. The conditions are:

1. XUL cache is enabled (nglayout.debug.disable_xul_cache is false or doesn't exist)
2. Multiple dialogs with the same URL are opened simultaneously
3. This URL hasn't been opened before
4. Dialogs are opened with a "centerscreen" flag

In this scenario only the first dialog will get a "load" event. This is similar to 420815, yet the scenario is somewhat different.

To reproduce:

1. Download the testcase to your disk somewhere where it accessible via chrome://
2. Open Error Console and enter following command:

for (var i = 0; i < 3; i++) {openDialog("chrome://test/content/dialog_load_test.xul", "_blank", "centerscreen")}

(change the URL as required)

Note how the first time you do it only one dialog says "Loaded" while the others say "Not loaded". I could reproduce it in Firefox 3.0.1 and in a Firefox 3.1 nightly (20080909032504) - both on Windows though according to the bug report I was investigating the same happens on OS X as well.
We identified another bug report in our bug database as a duplicate of this one - almost identical but applies to pages loaded into <xul:iframe>. So this isn't limited to dialogs.
Assignee: jag → nobody
Works for me in current trunk and 1.9.1 nightlies - apparently fixed in bug 206691. Also, this seems to be a duplicate of bug 321099.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: