http://crbug.com/75338 http://crosbug.com/12679
Given a label for an input. When the user clicks the label we generate a simulated click event on the input. However, this event has all its coordinates set to 0. I have a fix for this where we use the coordinates of the underlying event for simulated clicks.
Created attachment 93929 [details] Patch
Emil, I know you are not yet a reviewer but since you looked at mouse coordinates recently I would appreciate if you could take a quick look at this.
Created attachment 93931 [details] Patch: Fix test to not print coord when passing
Comment on attachment 93931 [details] Patch: Fix test to not print coord when passing View in context: https://bugs.webkit.org/attachment.cgi?id=93931&action=review > LayoutTests/fast/events/simulated-click-coords.html:6 > +<p>Ensure that simulated click uses the original mouse coordinates.</p> Ensure that simulated click on label elements uses the original mouse coordinates.
LGTM. I'd like to see a test where the label is inside a scrolled container though, just to make sure all the coordinates are calculated correctly.
Committed r86776: <http://trac.webkit.org/changeset/86776>