Bug 129477 - MouseEvent.offsetX/Y should just return 0,0 for simulated clicks.
Summary: MouseEvent.offsetX/Y should just return 0,0 for simulated clicks.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-28 02:15 PST by Andreas Kling
Modified: 2014-02-28 10:38 PST (History)
4 users (show)

See Also:


Attachments
Patch (1.50 KB, patch)
2014-02-28 02:15 PST, Andreas Kling
ap: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2014-02-28 02:15:30 PST
Computing offsetX/Y is non-trivial, and the values are meaningless for simulated clicks anyway.
Comment 1 Andreas Kling 2014-02-28 02:15:58 PST
Created attachment 225448 [details]
Patch
Comment 2 Alexey Proskuryakov 2014-02-28 09:21:36 PST
Comment on attachment 225448 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=225448&action=review

> Source/WebCore/ChangeLog:7
> +        There's no need to compute the exact target-relative coordinates for
> +        simulated mouse events, e.g those fired by HTMLElement.click().

r=me with the condition that this matches at least Firefox.
Comment 3 Andreas Kling 2014-02-28 10:38:40 PST
Committed r164871: <http://trac.webkit.org/changeset/164871>