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)
Tracking
()
RESOLVED
INVALID
People
(Reporter: mkaply, Unassigned)
References
Details
(Keywords: regression)
Attachments
(1 file)
(deleted),
application/x-xpinstall
|
Details |
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.
Reporter | ||
Updated•11 years ago
|
Depends on: 875157
Keywords: regression
Reporter | ||
Comment 1•11 years ago
|
||
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>
Reporter | ||
Comment 2•11 years ago
|
||
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)
Reporter | ||
Updated•11 years ago
|
Reporter | ||
Comment 3•11 years ago
|
||
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)
Reporter | ||
Comment 4•11 years ago
|
||
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.
Description
•