Version: (using KDE KDE 3.1.3) Installed from: Compiled From Sources Compiler: gcc 2.95.3 OS: Linux When clicking a link that reuses an existing javascript-created window, the window contents are not updated, nor is the window brought to the front. Here is a test case: <html> <script> function openwindow(file) { win = window.open(file, "mywin", "toolbars=0"); win.focus(); } </script> <body> <div align="center"> <table> <tr> <td> <a href='javascript:openwindow("pic1.jpg");'> <img src="pic1.jpg"> </a> </td> <td> <a href='javascript:openwindow("pic2.jpg");'> <img src="pic2.jpg"> </a> </td> </tr> </table> </div> </body> </html> Replace 'pic1.jpg' and 'pic2.jpg' with names that exist on your machine. When a link is first clicked, a window is created and brought to the front as expected; when the other link is clicked, which tries to reuse that existing window, nothing happens.
As of CVS Jan-12-2004, this bug still exists. Here's the debug out when I click the link to bring up the second image: konqueror: [void KHTMLPart::urlSelected(const QString &, int, int, const QString &, KParts::URLArgs = URLArgs())] javascript:openwindow("pic2.jpg"); konqueror: KonqMainWindow::slotCreateNewWindow(4 args) url= args.serviceType=text/html args.frameName=mywin khtml (jscript): WARNING: Script threw exception: TypeError: Undefined value
As of KDE 3.2.2, this bug still exists. Using gcc 3.3.3, glibc 2.3.3, Qt 3.3.2.
Created attachment 12048 [details] Test case Confirmed on 3.5-branch
Confirmed on trunk r793971.
Works fine in kde 4.8