<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>157269</bug_id>
          
          <creation_ts>2016-05-02 10:12:07 -0700</creation_ts>
          <short_desc>TouchEvent objects shouldn&apos;t contain co-ordinates</short_desc>
          <delta_ts>2016-09-28 12:31:13 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>UI Events</component>
          <version>Safari 9</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Dresser">tdresser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bdakin</cc>
    
    <cc>benjamin</cc>
    
    <cc>cdumez</cc>
    
    <cc>dino</cc>
    
    <cc>rbyers</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1189421</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Dresser">tdresser</who>
    <bug_when>2016-05-02 10:12:07 -0700</bug_when>
    <thetext>TouchEvent objects shouldn&apos;t contain co-ordinates, co-ordinates should only reside on the associated Touch objects.

See:
https://www.w3.org/TR/uievents/#interface-UIEvent
https://w3c.github.io/touch-events/#idl-def-TouchEvent

To reproduce, visit jsbin.com/jalomi/quiet, and touch the screen.
Nothing should be written to the screen, but the x co-ordinate of the first pointer is written to the screen.

This behavior isn&apos;t spec compliant, and may cause compatibility issues. It also encourages sharing code for touch and mouse events, which seems to be something that isn&apos;t desired by Apple engineers.

&quot;The premise of the specification is that using mouse event and touch events
interchangeably is needed. In reality, nobody was really asking for that
because it is a terrible idea.&quot;
https://lists.webkit.org/pipermail/webkit-dev/2012-November/022957.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1189426</commentid>
    <comment_count>1</comment_count>
    <who name="Rick Byers">rbyers</who>
    <bug_when>2016-05-02 10:29:48 -0700</bug_when>
    <thetext>I assume this is because pageX, pageY, layerX, layerY are on UIEvent.idl in WebKit (https://github.com/WebKit/webkit/blob/66e68cd8d7bf4ea1cf52f31ed9cb242f83ea5b57/Source/WebCore/dom/UIEvent.idl).

Chromium has never (AFAIK) reported non-zero values for TouchEvent.pageX/pageY/layerX/layerY, and we removed those properties from TouchEvent completely about a year ago (https://bugs.chromium.org/p/chromium/issues/detail?id=50327).

We&apos;re not aware of a single website which is depending on seeing these properties on TouchEvents, so it&apos;s likely highly web compatible to move them from UIEvent to MouseEvent as we did in blink.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1234466</commentid>
    <comment_count>2</comment_count>
    <who name="Rick Byers">rbyers</who>
    <bug_when>2016-09-28 11:28:28 -0700</bug_when>
    <thetext>See https://bugs.webkit.org/show_bug.cgi?id=147740#c11 for discussion of the interaction between these non-standard properties and the standard constructor syntax.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>