Bug 45208

Summary: [chromium] Converting from MouseEvent to WebMouseEvent assigns ButtonLeft when no button has been pressed.
Product: WebKit Reporter: Gene Gutnik <gene>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: gene, girard
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   

Description Gene Gutnik 2010-09-03 15:49:15 PDT
Bug is in WebKit/WebKit/chromium/src/WebInputEventConversion.cpp in WebMouseEventBuilder::WebMouseEventBuilder().

Currently, when no mouse button has been pressed, the result WebMouseEvent will have member button set to ButtonLeft.
Code that converts button state should take into account the state of event.buttonDown() (see code below for modifiers conversion).
Comment 1 Eugene Girard 2012-01-12 17:33:22 PST
After reviewing the code, it appears this issue has been addressed.