Bug 54696 - [test case] page is empty after clicking on an target="_blank" onClick("...") link
Summary: [test case] page is empty after clicking on an target="_blank" onClick("...")...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml ecma (show other bugs)
Version: 4.5.4
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-15 23:40 UTC by Gunnar Johannesmeyer
Modified: 2024-05-06 20:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
test case (635 bytes, text/html)
2004-01-17 12:33 UTC, Stephan Kulow
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gunnar Johannesmeyer 2003-02-15 23:40:30 UTC
Version:           3.1 (using KDE KDE 3.1)
Installed from:    Gentoo Packages
Compiler:          3.2 
OS:          Linux

hi,
when clicking on an link with the combination of target="_blank" and onClick="open('...'), a new tab is opend with page2, but the tab with page1 becomes empty!
expectate behavior: a new tab with page 2 is open but page 1 is still shown in the first tab.

i wrote this little example:

# here is page1.html
<html>
 <head><title>Konquitest</title></head>
 <body>
 <p>This is page 1</p>
 <p>click on the link. a new tab ist opened with page2.html and <b>this</b> page becomes blank!</p>
 <p>click this link: <a href="page2.html" title="Next page..." target="_blank" onClick="open('page2.html','video','width=600,height=427,scrollbars=auto,resizable,menubar=no,location=no,directories=no,toolbar=no,screenX=150,screenY=100').focus();return false;">Go to page 2</a></p>
 </body>
 </html>

#here is page2.html:
<html>
 <head><title>Konquitest</title></head>
 <body>
 <p>This is page 2. please look at tab 1</p>
 </body>
 </html>

greetings gunnar
Comment 1 Kai Lahmann 2003-06-14 18:28:36 UTC
confirmed 
Comment 2 Stephan Kulow 2004-01-17 12:33:19 UTC
Created attachment 4204 [details]
test case
Comment 3 Gunnar Johannesmeyer 2004-05-11 09:07:15 UTC
confirmed still in konqueror 3.2.2 (kde 3.2.2)
additional behavior:

page2.html is opened in 2(!) tabs.
Comment 4 Dmitrii A. Varvashenia 2005-05-05 18:55:58 UTC
confirmed:
page1 is empty after click (but Ctrl-U show full source)
page2 opned in popup and _blank

if you remove .focus() then page1 is empty and page 2 opened in popup
  <p>click this link: <a href="page2.html" title="Next page..." target="_blank" onClick="open('page2.html','video','width=600,height=427,scrollbars=auto,resizable,menubar=no,location=no,directories=no,toolbar=no,screenX=150,screenY=100');return false;">Go to page 2</a></p> 

KDE Version
3.3.2 (KDE 3.3.2, (3.1))

Application
Web Browser/File Manager

Operating System
Linux (i686) release 2.6.8-2-k7

Compiler
gcc version 3.3.5 (Debian 1:3.3.5-8)
Comment 5 Leo Spalteholz 2006-04-01 00:57:54 UTC
Confirmed with KDE 3.5.2, debian sid.
Comment 6 Michael Leupold 2008-04-06 06:13:30 UTC
Confirmed with trunk r793971
Comment 7 Samuel Brack 2011-01-01 19:37:38 UTC
Confirmed with 4.5.4, updating version.
Comment 8 Justin Zobel 2021-03-21 00:25:24 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.
Comment 9 Christoph Cullmann 2024-05-06 20:51:22 UTC
Dear user,

KHTML (and KJS) was a long time more or less unmaintained and got removed in KF6.

Please migrate to use a QWebEngine based HTML component.

We will do no further fixes or improvements to the KF5 branches of these components beside important security fixes.

For security issues, please see:

https://kde.org/info/security/

Sorry that we did not fix this issue during the life-time of KHTML.

Greetings
Christoph Cullmann