Closed
Bug 408198
Opened 17 years ago
Closed 17 years ago
window.close() is not working for window opened by script
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: dotnet333, Unassigned)
References
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 I have opened a window through window.open() and trying to close window using window.close() in javascript is not working in Mozilla 2.0.0.11 line on Default.aspx <a href="javascript:window.open('Default2.aspx','_self');">Open Window</a> line on Default2.aspx <a href="javascript:window.close();">Close Window</a> not working in mozilla 2.0.0.11, it works yesterday but today its not working Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: step 1) make new website project in Visual studio 2005 step 2) add line on Default.aspx <a href="javascript:window.open('Default2.aspx','_self');">Open Window</a> step3) add new aspx page add line on Default2.aspx <a href="javascript:window.close();">Close Window</a> run the project and it is not working in mozilla 2.0.0.11, Expected Results: window.close() must be work for window which has been opened by window.open()
Comment 1•17 years ago
|
||
Bug 212298 ?
Updated•17 years ago
|
Product: Firefox → Core
QA Contact: general → general
Bug 212298 link not available to test http://www.mxstudio.homeschool.pl/testy/close.html please note that problem is with Mozilla Forefox 2.0.0.11
save this HTML file on same path where HTML1.html is saved, and open Html1.html first
Attachment #293096 -
Attachment description: First HTML page → First HTML page
try in Mozilla FireFox 2.0.0.11 only
Comment 5•17 years ago
|
||
Ah, you're opening into _self. That shouldn't make the current window closeable unless you opened it to start with. As Ria said, see bug 212298.
You need to log in
before you can comment on or make changes to this bug.
Description
•