[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 107686] New: dispatchEvent() on DOM node causes SIGALRM
From:       Florian Roth <florian () synatic ! net>
Date:       2005-06-18 20:43:51
Message-ID: 20050618224350.107686.florian () synatic ! net
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=107686         
           Summary: dispatchEvent() on DOM node causes SIGALRM
           Product: konqueror
           Version: unspecified
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: NEW
          Severity: crash
          Priority: NOR
         Component: khtml
        AssignedTo: konq-bugs kde org
        ReportedBy: florian synatic net


Version:            (using KDE KDE 3.4.1)
Installed from:    Gentoo Packages
Compiler:          gcc 3.3.5 Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1
OS:                Linux

Ad khtml doesn't create an event when an node attribute is changed (and for all \
MutationEvents as well) I decided to create one manually and add it to the event \
queue. Here's the code I used for it:

node.setAttribute(DOM::DOMString("url"), DOM::DOMString(url.url()));
DOM::MutationEvent event = \
static_cast<DOM::MutationEvent>(doc.createEvent(DOM::DOMString("MutationEvents")));  \
if(!event.isNull()){  event.initMutationEvent(DOM::DOMString("DOMAttrModified"), \
true, false, node.getAttributeNode(DOM::DOMString("url")), DOM::DOMString(), \
DOM::DOMString(url.url()), DOM::DOMString("url"), MODIFICATION);  \
node.dispatchEvent(event);  }

It is a HTML document.
As soon as I dispatch the event Konqueror (in my case, or khtml in general) hangs and \
causes a SIGALRM.

I tested this with some other events types (MouseEvent, DocumentEvent) and it was \
working just fine then.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic