Bug 168017

Summary: widely supported window.frames.top not supported in konqueror
Product: [Applications] konqueror Reporter: Stephen Baker <cycoone>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Severity: normal CC: maksim
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description Stephen Baker 2008-08-01 18:07:11 UTC
Version:            (using KDE 4.1.0)
Installed from:    MS Windows
OS:                MS Windows

In Opera 9.5, IE 6+, Firefox 2+, and Safari 3.1 window.frames['top'] or window.frames.top points to the top level window object in a page containing frames. In Konq as in those other browsers window.top points to this object, but in konq window.frames['top'] and window.frames.top are undefined.

The workaround (t=='top'?window.top:window.frames[t]) is relatively trivial, but unnecessary for any other major browser.
Comment 1 Maksim Orlovich 2008-08-01 18:09:26 UTC
Trivia fact:
window.frames === window in other browsers.
I was planning on changing us to match, but wasn't sure if it was needed --- now I know.