<?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>146848</bug_id>
          
          <creation_ts>2015-07-10 12:31:48 -0700</creation_ts>
          <short_desc>Consider implementing UIEvent.sourceCapabilities</short_desc>
          <delta_ts>2024-02-01 04:45:21 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=210054</see_also>
          <bug_file_loc>http://wicg.github.io/InputDeviceCapabilities/</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="Rick Byers">rbyers</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>annevk</cc>
    
    <cc>a_protyasha</cc>
    
    <cc>ap</cc>
    
    <cc>benjamin</cc>
    
    <cc>contact</cc>
    
    <cc>dino</cc>
    
    <cc>rniwa</cc>
    
    <cc>sam</cc>
    
    <cc>tdresser</cc>
    
    <cc>webkit</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1108713</commentid>
    <comment_count>0</comment_count>
    <who name="Rick Byers">rbyers</who>
    <bug_when>2015-07-10 12:31:48 -0700</bug_when>
    <thetext>Concrete proposal here: https://github.com/RByers/InputDevice

We&apos;re close to doing an intent-to-ship for this in blink, so it would be great to get a better understanding of whether WebKit has any interest in this API or has any outstanding concerns before we ship it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1108830</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2015-07-10 17:59:48 -0700</bug_when>
    <thetext>Seams reasonable. What working group is this work slated for?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1108864</commentid>
    <comment_count>2</comment_count>
    <who name="Rick Byers">rbyers</who>
    <bug_when>2015-07-10 20:00:09 -0700</bug_when>
    <thetext>Thanks!  I&apos;ve been talking with WebApps (on www-dom), one of the UI Events spec editors have expressed support (https://lists.w3.org/Archives/Public/www-dom/2015JanMar/0117.html).  UI Events certainly seems like the right place.  But I haven&apos;t yet been able to get any further than that yet.  I suspect we won&apos;t block shipping on the politics here (but would, of course, block if there are unresolved technical concerns with the API).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1108899</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-07-10 23:10:09 -0700</bug_when>
    <thetext>Thank you for filing the bug!

The spec appears to be mostly about touch/mouse events at this time, and it is also quite extensible for other event types. Do you have future extension directions in mind?

There is already a note alluding to complexities with keyboard events, and it seems likely that the complexities will grow as use cases and various virtual input devices are considered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1108919</commentid>
    <comment_count>4</comment_count>
    <who name="Rick Byers">rbyers</who>
    <bug_when>2015-07-11 03:32:24 -0700</bug_when>
    <thetext>Yes, there has been some brainstorming in the community about how we might want to extend this over time.  Some ideas here: https://docs.google.com/document/d/1WLadG2dn4vlCewOmUtUEoRsThiptC7Ox28CRmYUn8Uw/edit#.  But as you say, the details can get complex, so I figure it&apos;s best to iterate incrementally in a careful scenario-driven fashion rather than go nuts all at once.

My focus right now is to solve one particular long standing problem for devices with both a mouse and touchscreen (so not itself that interesting for WebKit).  But no one wants to make one-off hacks just for that, so we&apos;re trying to establish a reasonable device info pattern for the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1503158</commentid>
    <comment_count>5</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2019-02-06 09:18:23 -0800</bug_when>
    <thetext>Mass move bugs into the DOM component.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1622944</commentid>
    <comment_count>6</comment_count>
    <who name="Ben Frain">contact</who>
    <bug_when>2020-02-26 02:26:14 -0800</bug_when>
    <thetext>Any movement on this. 

Here&apos;s a use case: building a piece of UI. If it&apos;s a touch capable pointer, I want to expose some custom UI for text input. If it&apos;s a fine pointer I expose a standard input.

In Chrome I can use tabindex to capture focus on a wrapping element and then query that focus event&apos;s &apos;sourceCapabilities&apos; to see whether &apos;firesTouchEvents&apos; is true. The fork my code appropriately.

Unable to do this for Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2009695</commentid>
    <comment_count>7</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-02-01 04:43:47 -0800</bug_when>
    <thetext>I can&apos;t find any WPT tests and also any Mozilla Position for this API.

Although, if I look into UI_Event.idl file in Chromium / Blink source, I can find it.

Anything to do here?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>