Closed
Bug 399368
Opened 18 years ago
Closed 18 years ago
window.close() fails to close modal dialog boxes opened with showModalDialog
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: ellislau, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a8) Gecko/2007091216 GranParadiso/3.0a8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a8) Gecko/2007091216 GranParadiso/3.0a8
Bug seems to appear only in FF 3.0a8, and not in previous alphas.
The code works fine in IE.
Test code:
foo.html
<body onload="window.showModalDialog('bar.html','test','dialogWidth=200px;dialogHeight=200px;')">
</body>
bar.html
<input type="button" onclick="window.close()" value="close window">
Reproducible: Always
Steps to Reproduce:
1.Make two files with above code.
2.Click on the button.
3.
Actual Results:
Nothing happens
Expected Results:
Dialog box should close
Updated•18 years ago
|
Component: DOM: Core → DOM
QA Contact: general → general
Comment 1•18 years ago
|
||
works for me in a current trunk build;
(tested using your example code, but formed in data: url pasted to url-bar; had to allow Firefox to open the popup)
Reporter, please test again in a9 once it is released and reopen (or comment here) if the problem presists.
---
data:text/html,<body onload="window.showModalDialog('data:text/html,<input type="button" onclick="window.close()" value="close window">',%20'test',%20'dialogWidth=200px;dialogHeight=200px;')"></body>
---
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
| Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•