<?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>197773</bug_id>
          
          <creation_ts>2019-05-10 07:34:43 -0700</creation_ts>
          <short_desc>[GTK] Touchscreen detection false positive</short_desc>
          <delta_ts>2019-05-22 07:19:15 -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>WebKitGTK</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>139681</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryan DeBeasi">hi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1534988</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan DeBeasi">hi</who>
    <bug_when>2019-05-10 07:34:43 -0700</bug_when>
    <thetext>WebKitGTK is detecting a touch screen on my device, even though I don&apos;t have a touch screen. I&apos;m not seeing this behavior on Firefox or Chrome. I&apos;m running GNOME Web 3.28.1 on Elementary OS Juno (Ubuntu 18.04.2 LTS) on a Dell XPS 13 (9343).

To reproduce:
1. Open GNOME Web on a device that does not have a touchscreen.
2. Open the browser developer tools.
3. Go to Console.
4. Type `window.matchMedia(&quot;(any-pointer:coarse)&quot;).matches`.
5. `true` appears.

Following the same steps in Firefox or Chrome produces `false`.

Alternately, this page also reproduces the problem: https://patrickhlauke.github.io/touch/touchscreen-detection/

Potential related issue: https://bugs.webkit.org/show_bug.cgi?id=144765

Thank you!!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1538151</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2019-05-22 04:12:09 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 139681 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1538166</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2019-05-22 06:31:43 -0700</bug_when>
    <thetext>Are you sure this is a duplicate that would be fixed by bug #139681? This isn&apos;t about touch events, this is about window.matchMedia().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1538174</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2019-05-22 07:19:15 -0700</bug_when>
    <thetext>Yes, window.matchMedia(&quot;(any-pointer:coarse)&quot;).matches is false when building with touch events disabled.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>