[PATCH] Get rid of dialogs when visiting netvibes.com
Germain Garand
germain at ebooksfrance.org
Wed Jan 9 20:10:36 GMT 2008
Le Mercredi 09 Janvier 2008 10:33, Aurélien Gâteau a écrit :
> Sundance wrote:
> > Aurélien wrote:
> >> I agree. But I don't know if it's easy to detect whether we are in an
> >> iframe or not.
> >
> > Darn. I was sort of hoping there would be a straightforward enough
> > solution -- it felt like the right issue to fix.
>
> Yes, I think it is the correct way to fix this bug. Anyone can provide some
> pointers as to whether it's possible to identify if we are trying to embed
> a document from an iframe?
If you have a KHTMLPart pointer, then you can check if part->parentPart() is
non-null. That also covers non-inline frames, but I think that's what you
want anyway (all elements of a frameset should be embedded, shouldn't they?)
Grretings,
Germain
More information about the kfm-devel
mailing list