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.
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.
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).
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.
I can verify this bug. KDE 3.5.6 Kubuntu Feisty
It seems to work in KDE4 (SVN). I'll re-open if it re-appears at any point.
*** Bug 143655 has been marked as a duplicate of this bug. ***
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).
I'll reopen this, I just tried test cases with konqueror trunk r654974 and problem is still there.
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.
Germain Garand fixed this for 4.0...