Bug 141615

Summary: [test case] empty iframe covers later div
Product: [Applications] konqueror Reporter: Alex Merry <alex.merry>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: aleksandersen+bugs.kde.org, dsteinbrook, ehamberg
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: The JavaScript version
Just the generated HTML

Description Alex Merry 2007-02-13 00:30:47 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    Unlisted Binary Package
Compiler:          gcc-4.1.1 
OS:                Linux

After spending all day working on this, I'm getting thoroughly confused.

This stems from a problem on Facebook (http://www.facebook.com), where clicking "poke back" is supposed to bring up a little box with a picture and some text.  In Konqi, it simply brings up a plain box, unless you click "poke back" again, in which case it displays fine.

It turns out this is an iframe sitting on top of the div that contains the text.  I'm not sure why they make the div, but there you go.  The original javascript was more multi-purpose than the trimmed-down testcase.

I've also made a static version (just the generated html, not the javascript that generates it), but that's playing up in other ways (it doesn't always render the iframe correctly at all), so I don't know what's up with that.

The javascript testcase is heavily commented.

Mozilla, IE et al. display the div on top of the iframe.
Comment 1 Alex Merry 2007-02-13 00:32:44 UTC
Created attachment 19654 [details]
The JavaScript version

This is trimmed-down from the original Facebook code.  More info displayed when
you open the file.  Also, extensive comments in the JavaScript.
Comment 2 Alex Merry 2007-02-13 00:34:43 UTC
Created attachment 19655 [details]
Just the generated HTML

This is just the HTML that the JavaScript generates.  You don't get the weird
behaviour of it displaying correctly when you do something with this one.  Also
seems to trigger an unrelated bug in the iframe rendering, which makes it
difficult to deal with (the iframe just renders as a blank box sometimes).
Comment 3 Alex Merry 2007-02-13 00:36:33 UTC
Final point: I've seen Bug 31121.  All of the testcases on that bug work for me, and the iframe goes underneath the div the second time the script is run, so I don't think it's a duplicate.
Comment 4 Jon Mueller 2007-03-01 18:12:50 UTC
I can verify this bug.
KDE 3.5.6
Kubuntu Feisty
Comment 5 Alex Merry 2007-03-27 18:58:53 UTC
It seems to work in KDE4 (SVN).  I'll re-open if it re-appears at any point.
Comment 6 Tommi Tervo 2007-04-18 09:20:13 UTC
*** Bug 143655 has been marked as a duplicate of this bug. ***
Comment 7 Daniel W. Steinbrook 2007-04-18 18:15:08 UTC
The attached test cases are still valid, but it looks as though Facebook decided to be nice and fix their own code today -- unlike yesterday, all the popup divs are working on the first click now on the site (Konqueror 3.5.6/FreeBSD).
Comment 8 Tommi Tervo 2007-04-18 19:20:18 UTC
I'll reopen this, I just tried test cases with konqueror trunk r654974 and problem is still there.
Comment 9 Daniel W. Steinbrook 2007-05-19 17:10:09 UTC
Google is now a perpetrator! They've redesigned their home page (is this the first time ever?), and now the "more" dropdown menu on the top of the page exhibits this behavior (Konqueror/3.5.6). Looking at the source, it is indeed yet another IFRAME within a DIV called my an ONCLICK event.
Comment 10 Maksim Orlovich 2008-01-14 06:34:10 UTC
Germain Garand fixed this for 4.0...