Closed Bug 154993 Opened 23 years ago Closed 23 years ago

javascript [parent.]window.close() closes browser window, not tab

Categories

(SeaMonkey :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 103452

People

(Reporter: mozilla, Assigned: jag+mozilla)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020607 BuildID: 1.0.0 The page at http://www.tortall.net/mozilla-window-close.html has a "javascript:window.close()" javascript link at the bottom of the page. When this window is open in a tab, this close window function closes the entire browser window instead of just the tab. The problem also occurs on other pages (no link at the moment) which use frames and use parent.window.close() from within a frame. Reproducible: Always Steps to Reproduce: 1. Go to http://www.tortall.net/mozilla-window-close.html 2. Open a new browser tab with Control-T or File|New|Navigator Tab 3. Switch back to the http://www.tortall.net/mozilla-window-close.html tab. 4. Click on the "javascript:window.close()" link. Actual Results: The entire browser window closes (thus closing all tabs). Expected Results: Only the tab containing the javascript:window.close() link should have closed.
Please, before reporting bugs test them using a current build. This problem has been fixed since the 1.0.0 release. *** This bug has been marked as a duplicate of 103452 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
marking verified as a duplicate. if you decide to reopen this bug, please clarify why. search string for bugspam removal: SalviaGuaranitica
Status: RESOLVED → VERIFIED
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.