KDE_3_2_BRANCH: kdelibs/khtml [POSSIBLY UNSAFE]

George Staikos staikos at kde.org
Mon Jan 26 19:06:39 GMT 2004


On Monday 26 January 2004 14:05, Koos Vriezen wrote:
> > > Please test this for plugins as well, or use the __khtml for name()
> > > check.
> >
> > this is an initial resize, before the widget is first
> > layouted/positionned/resized, so how is that a problem?
>
> Both Java and nsplugin consider the initial WIDTH/HEIGHT params as a gift
> from heaven that it will be sized this way later on. If you think you can
> resize an applet to 0x0 without any applet out there breaaking on it... :-)
>
> > but yes, if it's safer, it could use
> >
> > +     if (!strcmp(m_widget->name(), "__khtml"))
> > +                m_widget->resize(0,0);


   I can confirm this with nsplugins too.  Resize to 0,0 will result in 
judgement day.

-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/




More information about the kfm-devel mailing list