-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Index: khtml_part.cpp =================================================================== RCS file: /home/kde/kdelibs/khtml/khtml_part.cpp,v retrieving revision 1.1015.2.12 diff -u -p -r1.1015.2.12 khtml_part.cpp - --- khtml/khtml_part.cpp 17 Nov 2004 13:46:56 -0000 1.1015.2.12 +++ khtml/khtml_part.cpp 12 Dec 2004 15:55:30 -0000 @@ -4758,7 +4758,7 @@ KHTMLPart * KHTMLPart::findFrameParent( KParts::ReadOnlyPart *callingPart, const QString &f, khtml::ChildFrame **childFrame ) { #ifdef DEBUG_FINDFRAME - - kdDebug(6050) << "KHTMLPart::findFrameParent: this = " << this << " URL = " << m_url << " findFrameParent( " << f << " )" << endl; + kdDebug(6050) << "KHTMLPart::findFrameParent: this = " << this << " URL = " << m_url << " name = " << name() << " findFrameParent( " << f << " )" << endl; #endif // Check access KHTMLPart* const callingHtmlPart = dynamic_cast(callingPart); @@ -4766,6 +4766,9 @@ KHTMLPart::findFrameParent( KParts::Read if (!checkFrameAccess(callingHtmlPart)) return 0; + if (!childFrame && !parentPart() && (name() == f)) + return this; + FrameIt it = d->m_frames.find( f ); const FrameIt end = d->m_frames.end(); if ( it != end ) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFBvXunN4pvrENfboIRAjf3AJ9tfr6RFaO9l9wtnKy04zLD6IcpeQCfS/KH O2Cl7tP/cGJ2rOg+KuMr4xg= =IXtZ -----END PGP SIGNATURE-----