Contact emails
dtap...@chromium.org, rby...@chromium.org
Spec
http://www.w3.org/TR/cssom-view/#extensions-to-the-mouseevent-interface
Summary
Currently pageX, pageY, layerX and layerY are defined on the base UIEvent. These fields are only populated on mouse related events and aren't on other UI events such as touch or keyboard events. They make no sense on the non-mouse events.
Motivation
Bring the implementation into spec compliance to be compatible with other vendors.
Microsoft has requested that be standards compliant in this area. See discussion: https://groups.google.com/a/chromium.org/forum/#!topic/input-dev/4p1XZy_17aw
pageX/pageY are used on 16% of page loads while layerX/layerY are used on 2%
Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes.
Compatibility Risk
Low. Since the events always return 0 for the non-mouse events. It is plausible that some sites will read the value but do nothing with it; but sites have already had to contend with them not being present from events generated by IE.
Firefox: Supports these fields on UIEvent.
Safari: Supports these fields on UIEvent.
IE/Edge: Not supported on UIEvent; only on MouseEvent as per specification; and requested a fix by us here.
Bug
Implementation Review
https://codereview.chromium.org/1201193005
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
LGTM2I share Rick's hunch that waiting for more use counters won't actually tell us whether or not this is safe. Dave mentioned UIEvent.charCode/keyCode, which are shadowed on KeyboardEvent so that these counters are only ever hit when these return 0, and yet usage is incredibly high:Node.namespaceURI/localName are in the same situation, but with lower usage:In neither case do I think the use counters are a good estimate of actual risk. In this kind of situation, making the change shortly after a branch point and keeping a lookout for regressions on the long way to master is reasonable, I think.
On Thu, Jun 25, 2015 at 4:37 PM, Philip Jägenstedt <phi...@opera.com> wrote:LGTM2I share Rick's hunch that waiting for more use counters won't actually tell us whether or not this is safe. Dave mentioned UIEvent.charCode/keyCode, which are shadowed on KeyboardEvent so that these counters are only ever hit when these return 0, and yet usage is incredibly high:Node.namespaceURI/localName are in the same situation, but with lower usage:In neither case do I think the use counters are a good estimate of actual risk. In this kind of situation, making the change shortly after a branch point and keeping a lookout for regressions on the long way to master is reasonable, I think.We've got 2 weeks now until M45 branch. Do you think we should wait to land (assuming we get the 3rd LGTM)? Personally my hunch is that ~2 weeks prior to branch is sufficient in this case, but I'm OK waiting for M46 to get an extra 4 weeks of bake time if there is concern here.
On Thu, Jun 25, 2015 at 10:42 PM, Rick Byers <rby...@chromium.org> wrote:On Thu, Jun 25, 2015 at 4:37 PM, Philip Jägenstedt <phi...@opera.com> wrote:LGTM2I share Rick's hunch that waiting for more use counters won't actually tell us whether or not this is safe. Dave mentioned UIEvent.charCode/keyCode, which are shadowed on KeyboardEvent so that these counters are only ever hit when these return 0, and yet usage is incredibly high:Node.namespaceURI/localName are in the same situation, but with lower usage:In neither case do I think the use counters are a good estimate of actual risk. In this kind of situation, making the change shortly after a branch point and keeping a lookout for regressions on the long way to master is reasonable, I think.We've got 2 weeks now until M45 branch. Do you think we should wait to land (assuming we get the 3rd LGTM)? Personally my hunch is that ~2 weeks prior to branch is sufficient in this case, but I'm OK waiting for M46 to get an extra 4 weeks of bake time if there is concern here.Isn't the branch point tomorrow? So says http://www.chromium.org/developers/calendar
What I meant to say is that this is a good timing to maximize bake time, but if the branch point is indeed two weeks away I don't think we should delay just for that.
Philip