Bug 45208 - [chromium] Converting from MouseEvent to WebMouseEvent assigns ButtonLeft when no button has been pressed.
Summary: [chromium] Converting from MouseEvent to WebMouseEvent assigns ButtonLeft whe...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-03 15:49 PDT by Gene Gutnik
Modified: 2012-01-12 17:33 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.