Crash: blocking JS and deleting a window

Simon Hausmann hausmann at kde.org
Sat Oct 5 17:05:42 BST 2002


On Sat, Oct 05, 2002 at 03:27:41PM +0200, Koos Vriezen wrote:
> On Sat, 5 Oct 2002, Koos Vriezen wrote:
> 
> > On Sat, 5 Oct 2002, Simon Hausmann wrote:
> > >
> > > On a second though I don't understand how this can happen. The
> > > alert() triggers a messagebox with the window as parent, so it
> > > shouldn't be possible to close the window in the first place as the
> > > messagebox is modal. Any idea?
> >
> > Same for 'Open Location' dialog. Bug in Qt?
> >
> > There are other cases, eg calls to Java, that could block JS. Something
> > has to be done.
> 
> Well, if this modal dialog can be solved elsewhere, we might not need a
> canDelete event if this ugly synchronization in KJavaAppletServer can be
> implemented differently:
>     while (!frame->ready && --count > 0) {
>         usleep(50000);
>         qApp->processEvents(100);
>     }

Ouch, processEvents. I wish this method would never have gotten
public, never ever. It makes nothing but trouble when people use it
:-(

Simon




More information about the kfm-devel mailing list