Bug 69730

Summary: [GTK] Misnamed argument inverts semantics
Product: WebKit Reporter: Bob Murphy <bobert>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED    
Severity: Normal CC: berto, bugs-noreply, mrobinson
Priority: P3    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   

Bob Murphy
Reported 2011-10-09 13:31:47 PDT
In WebKitGtk 1.4.2, WebKitDomNode.cpp, the function webkit_dom_node_add_event_listener() accepts a "bubble" argument, and passes it unchanged to WebCore::GObjectEventListener::addEventListener(). However, the implementation of addEventListener(), in GObjectEventListener.h, has a "useCapture" argument at that same position. And digging past that, it does appear that argument means whether to fire the handler during the capture phase. Xan Lopez confirmed this, and suggested submitting a patch to make the parameter name consistent with what it actually accomplishes, which I will do.
Attachments
Alberto Garcia
Comment 1 2013-09-18 10:24:14 PDT
Ping
Note You need to log in before you can comment on or make changes to this bug.