Bug 87126 - open() for frameset componenent opens new window
Summary: open() for frameset componenent opens new window
Status: RESOLVED DUPLICATE of bug 86796
Alias: None
Product: konqueror
Classification: Applications
Component: kjs (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-13 15:56 UTC by Johannes Ranke
Modified: 2004-08-13 18:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Ranke 2004-08-13 15:56:35 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    Compiled From Sources
Compiler:          gcc-Version 3.3.4 Debian 1:3.3.4-7
OS:                Linux

The site www.deltatronic.de contains a normal version and a light version. The normal version is rendered fine in Konqueror 3.2 (Debian). Now, in the source I found 

function initMenu() {
  var doc = top.menu.window.document;
  doc.open();
  openFolder(0);
}

and a frameset is defined by 
<frameset cols="203,*" frameborder="no" frameSpacing=0 onLoad="parent.initMenu()">

  <frameset frameSpacing=0 rows="120,*" frameborder="no">
    <frame name="logo" src="logo.html" frameborder="no" scrolling="no" marginwidth="0" marginheight="0"> </frame>
    <frame name="menu" src="menu.html" frameborder="no" scrolling="no" marginwidth="0" marginheight="0"> </frame>
  </frameset>
  <frameset frameSpacing=0 rows="120,*" frameborder="no">
    <frame name="kopf" src="kopf.html" frameborder="no" scrolling="no" marginwidth="0" marginheight="0"> </frame>
    <frame name="hauptfenster" src="starthome.html" frameborder="no"> </frame>
  </frameset>
</frameset>

So on loading the frameset, the function initMenu() is called, calling essentially top.menu.window.document.open()
I would think - although I don't know why they call parent.initMenu() and not plain initMenu().

Anyway, Konqueror 3.3 opens a new window all the time on this site, and I can't use the "normal" version any more :(
Comment 1 Dik Takken 2004-08-13 18:27:07 UTC
Please put this in a nice testcase. We love testcases here.. :)

By the way, I can't reproduce on KDE 3.3 RC2. 
Comment 2 Stephan Kulow 2004-08-13 18:31:19 UTC

*** This bug has been marked as a duplicate of 86796 ***