Reviewed by John.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Feb 2004 22:55:54 +0000 (22:55 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Feb 2004 22:55:54 +0000 (22:55 +0000)
commitab8dc7660b217fd0fb0567540d3bae4672212b4d
tree7a8bb70a29779c08829695f51c89620595981497
parent898f2c42fb217a71e6b162ca80b51388217fe139
    Reviewed by John.

<rdar://problem/3514733>: nil-deref in createHTMLEventListener at skiset.com
<rdar://problem/3510676>: nil-deref of view in DocumentImpl::createHTMLEventListener at kirotv.com

* khtml/xml/dom_docimpl.cpp:
        (DocumentImpl::createHTMLEventListener): Don't create the listener if there is no
part. Also, get the part when going through the view. This prevents problems when
handlers are set or removed from the onUnload handler.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6129 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog-2005-08-23
WebCore/khtml/xml/dom_docimpl.cpp