Closed Bug 149105 Opened 23 years ago Closed 23 years ago

Javascript:winclose() should close only the current tab

Categories

(SeaMonkey :: Tabbed Browser, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

CLOSED DUPLICATE of bug 103452

People

(Reporter: djst, Assigned: jag+mozilla)

Details

If you open a pop-up window in a new tab and then press the Close button (which normally uses the "Javascript:winclose()" command), the whole Mozilla window will close. Javascript:winclose() should always close only the current tab, since a Mozilla window can contain more than one open web page. The site invoking the command can never tell how many web pages are loaded in the window.
I don't know the winclose() function. The most likely option is that it's a regular function defined within the site that simply calls window.close() to close the window. Googling reveals that "winclose" is indeed a name very often used for such a function on various javascript tutorial sites. In which case I'm duping this correctly. If however winclose turns out to be some special javascript function (perhaps for the close button on our tab bar?) and there's more to this bug than I see, do speak up. *** This bug has been marked as a duplicate of 32571 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Yes, this is probably the same as window.close(). I can't believe Bugilla returned Zarro Boogs when I searched it for window.close()!! Sorry about the duplicate.
np. :) Actually I duped this against the wrong (though related) bug as well. Sorry for the spam.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
*** This bug has been marked as a duplicate of 103452 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago23 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
.
Status: VERIFIED → CLOSED
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.