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)

x86
Windows 2000
defect
Not set
normal

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
Component: General → DOM: Core
Product: Firefox → Core
Component: DOM: Core → DOM
QA Contact: general → general
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,&lt;input type=&quot;button&quot; onclick=&quot;window.close()&quot; value=&quot;close window&quot;&gt;',%20'test',%20'dialogWidth=200px;dialogHeight=200px;')"></body> ---
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.