Bug 54844 - [testcase] javascript "window.close()" asks "Close window?" when should ask "Close tab?"
Summary: [testcase] javascript "window.close()" asks "Close window?" when should ask "...
Status: CONFIRMED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml ecma (show other bugs)
Version: 4.5.4
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-19 06:28 UTC by Asheesh Laroia
Modified: 2021-03-21 00:24 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Small testcase rendering a javascript:window.close() link (252 bytes, text/html)
2008-04-06 01:21 UTC, Michael Leupold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Asheesh Laroia 2003-02-19 06:28:03 UTC
Version:           unknown (using KDE KDE 3.1)
Installed from:    Debian testing/unstable Packages (testing/unstable)
Compiler:          gcc version 3.2.2 20030131 (Debian prerelease)
OS:          Linux (i686) release 2.4.20-wolk4.0s-pre9

I was browsing using Konqueror's new (&& 1337!) multi-tab browsing.  One tab was set to http://jhu.stuco.org/event.php?ID=387&Date=2003-02-19, where there is a form with code as follows:

	<form name="form1" action="javascript:window.close();" method="post">
	<input type="submit" value="Close This Window">
	</FORM>

(Yes, that b0rked capitalization is in the code.  You'd think if they used PHP they'd be smart enough to not do that.)

Anyway, this causes Konqueror to ask the user with a dialog box, "Close window?"  Clicking "Yes" only closes that tab, which is correct behavior.  The prompt should instead ask, "Close tab?"

-- Asheesh Laroia.
Comment 1 Oded Arbel 2004-02-25 11:16:27 UTC
I agree that the prompt should say "close tab". as its a khtml generated dialog, I'm sure there's a way for khtml to know if it runs inside a tab or a window and show the text accordingly.

about capitalization - contrary to what Zend would have you believe, PHP is case *in*sensitive.
Comment 2 Michael Leupold 2008-04-06 01:21:15 UTC
Created attachment 24215 [details]
Small testcase rendering a javascript:window.close() link

Still present in trunk r793971
Comment 3 Samuel Brack 2010-12-29 16:35:41 UTC
Confirmed in 4.5.4
Comment 4 Justin Zobel 2021-03-21 00:24:49 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 10 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.