Closed Bug 912655 Opened 11 years ago Closed 11 years ago

Can't open alert in load handler for a dialog (Cannot call openModalWindow on a hidden window)

Categories

(Core :: DOM: Navigation, defect)

24 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mkaply, Unassigned)

References

Details

(Keywords: regression)

Attachments

(1 file)

I'm doing a very simple window.openDialog on a XUL window. I get the error: Cannot call openModalWindow on a hidden window The dialog still displays, but because of the throw, window arguments are not passed properly to the onLoad.
Depends on: 875157
Keywords: regression
The actual call is: window.openDialog("chrome://unitedradio/content/radio/radio-window.xul", "unitedradio", "chrome,left=" + left + ",top=" + top, "Here"); And the XUL file is just a <dialog>
Attached file XPI to demonstrate problem (deleted) —
After installing this XPI, you'll need to go to the toolbar palette and drag the icon that says "DRAG ME TO THE TOOLBAR" to the toolbar. On Firefox 23, clicking the button displays the dialog and says "Here" which is the dialog alerting window.arguments. On Firefox 24, the error is shown in the console and the alert never displays (although the dialog comes up)
Blocks: 875157
No longer depends on: 875157
This is worse than I thought. It doesn't load the JS file for the XUL at all.
Summary: Opening a modal dialog causes error and doesn't pass arguments (Cannot call openModalWindow on a hidden window) → Opening a modal dialog causes error and doesn't load JS (Cannot call openModalWindow on a hidden window)
I have this completely wrong. Alerts in the onLoad of dialogs don't work anymore. That's quite annoying, but not major. It mainly hurts debugging. I'm guessing this is an OK behavior.
Severity: major → normal
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Summary: Opening a modal dialog causes error and doesn't load JS (Cannot call openModalWindow on a hidden window) → Can't open alert in load handler for a dialog (Cannot call openModalWindow on a hidden window)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: