Crash: blocking JS and deleting a window

Simon Hausmann hausmann at kde.org
Sat Oct 5 11:05:19 BST 2002


On Wed, Oct 02, 2002 at 08:44:16PM +0200, Koos Vriezen wrote:
> Hi,
> 
> Testcase:
> 
> <html><head><script>
>   var win=open("", "xxx");
>   var doc=win.document;
>   doc.open();
>   doc.write("<html><body onLoad=\"alert(somevar)\">");
>   doc.write("</body></html>");
>   doc.close();
> </script></head>
> <body></body></html>
> 
> After the second window is created, delete it by clicking the X button.
> Even KCrash crashes on this one.
> The problem is blocking JS (here the alert box, might as well be a
> LiveConnect call). Currently I see these options:

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?

Simon




More information about the kfm-devel mailing list