Open
Bug 326665
Opened 18 years ago
Updated 2 years ago
window.close does not work in chrome
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
UNCONFIRMED
People
(Reporter: robertotis, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
246 bytes,
application/vnd.mozilla.xul+xml
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 For some reason, window.close() does not seem to work when executing under chrome files, at least when applied to the main window. Neither does "self.close()" Reproducible: Always Steps to Reproduce: 1. Execute the attached XUL file Actual Results: The window does not close. If I replace the window.close() with an alert, the alert does execute, therefore the code is in fact executing. Expected Results: After four seconds, the window should close <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window id="main-window" onload="setTimeout('window.close()', 4000)" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> </window>
Reporter | ||
Comment 1•18 years ago
|
||
Updated•18 years ago
|
Assignee: nobody → general
Component: General → DOM
Keywords: testcase
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
Updated•18 years ago
|
Summary: window.close does not work in chome → window.close does not work in chrome
Comment 2•18 years ago
|
||
This looks like a duplicate of bug 190515
Comment 3•17 years ago
|
||
(In reply to comment #0) > Steps to Reproduce: > 1. Execute the attached XUL file > Execute how? Are you talking about XUL files opened inside the content area of the browser or top-level chrome windows? WFM in the latter case; in the former case the script indeed can't close the whole window if it hasn't opened it.
Updated•15 years ago
|
Assignee: general → nobody
QA Contact: ian → general
Comment 4•6 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•