display=none on iframe

David Faure faure at kde.org
Thu Oct 7 19:55:20 BST 2004


More problems with #84332.
It looks like it works now, at least it does visually. But there's still a difference
with Mozilla (dunno about IE, can anyone test?).

In KHTML, setting display=none and then display="" deletes the part and 
reloads it again, so the part's onload event is emitted twice.

In Mozilla, however, the part's onload event is not emitted twice, which tells
me the iframe's render object is only hidden, not deleted and recreated.

See attached testcase. "frame body onload emitted" appears again in konq,
after clicking the link.

No idea how to fix that - all I know is that RenderWidget::detach() deletes the
widget (via deref). Tried removing the deref, got a crash on reload. OK, rendering
stuff is really not for me :)

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20041007/0aa9abb0/attachment.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20041007/0aa9abb0/attachment-0001.html>


More information about the kfm-devel mailing list