Crash: blocking JS and deleting a window

Koos Vriezen koos.vriezen at xs4all.nl
Tue Oct 15 22:00:17 BST 2002


On Fri, 11 Oct 2002, Maks Orlovich wrote:

> <snip>
> Just stumbled on a potentially related problem (well, at least in a sense of
> messageboxes getting created from JS), so I think I'll throw it out here in
> case it's useful for this discussion:
>
> <html>
>   <head>
>     <title>Weird crash</title>
> <script type="text/javascript" language="javascript">
> function processMemo( theForm )
> {
>    confirm("Crash");
>    theForm.submit();
> }
> </script>
>   </head>
>
>   <body>
>     <form action="http://mail.rochester.edu/~mo002j/test" method=
>     "get">
>       <input type="text" onblur=
>       "javascript:processMemo( this.form)"> <input type="text"
>       onblur="javascript:processMemo( this.form)">
>     </form>
>   </body>
> </html>
>

> #41 0x41b9f341 in KJS::Object::call () from /opt/kde-cvs/lib/libkjs.so.1
> #42 0x41ae4c1d in KJS::JSEventListener::handleEvent ()
[..]
> #44 0x417a2e30 in DOM::NodeImpl::dispatchGenericEvent ()
[..]
> #47 0x417a037c in DOM::DocumentImpl::setFocusNode ()
>    from /opt/kde-cvs/lib/libkhtml.so.4
> #48 0x417703be in KHTMLView::focusNextPrevNode ()
>    from /opt/kde-cvs/lib/libkhtml.so.4
> #49 0x4176fb55 in KHTMLView::focusNextPrevChild ()
> #50 0x4094c1f5 in QWidget::focusNextPrevChild (this=0x8347de0, next=true)
[..]
> #54 0x417f4a42 in khtml::RenderWidget::~RenderWidget ()
[..]
> #64 0x4179d369 in DOM::DocumentImpl::detach ()

Hmmm, onBlur event while detaching. Either
'KHTMLView::focusNextPrevChild()' or 'DOM::DocumentImpl::setFocusNode()'
should check if 'm_render' of document not is null.

Regards,

Koos






More information about the kfm-devel mailing list