Crash: blocking JS and deleting a window
Dirk Mueller
mueller at kde.org
Wed Oct 16 12:41:50 BST 2002
On Mit, 16 Okt 2002, Koos Vriezen wrote:
> --- xml/dom_nodeimpl.cpp 2002/10/11 20:41:40 1.187
> +++ xml/dom_nodeimpl.cpp 2002/10/16 10:12:43
> @@ -702,6 +702,8 @@ bool NodeImpl::dispatchKeyEvent(QKeyEven
>
> void NodeImpl::handleLocalEvents(EventImpl *evt, bool useCapture)
> {
> + if (!getDocument() || !getDocument()->renderer())
> + return;
> if (!m_regdListeners)
> return;
>
>
> Please comment if the second patch should not be applied.
the second patch is wrong, because it doesn't matter for DOM if they have a
visual representation or not.
The 1st one looks okay.
--
Dirk (received 260 mails today)
More information about the kfm-devel
mailing list