<?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>212937</bug_id>
          
          <creation_ts>2020-06-08 16:13:11 -0700</creation_ts>
          <short_desc>User-Agent on iPadOS is macOS</short_desc>
          <delta_ts>2020-07-23 21:34:06 -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>WebKit API</component>
          <version>Safari 13</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 13</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>goehdavi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>beidson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1660472</commentid>
    <comment_count>0</comment_count>
    <who name="">goehdavi</who>
    <bug_when>2020-06-08 16:13:11 -0700</bug_when>
    <thetext>It appears that by default on iPadOS, Safari requests sites as desktop (macOS). Is there a way so that we can still reliably differentiate iPadOS from macOS?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1660503</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-06-08 17:09:15 -0700</bug_when>
    <thetext>This is expected behavior: https://webkit.org/blog/9674/new-webkit-features-in-safari-13/

Please do not implement any &quot;Mac&quot; vs. &quot;iPad&quot; code paths, and use feature detection for each specific that your website or application needs. You are welcome to reach out for assistance via email or slack, &lt;https://webkit.org/getting-started/#staying-in-touch&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674352</commentid>
    <comment_count>2</comment_count>
    <who name="">goehdavi</who>
    <bug_when>2020-07-23 14:00:43 -0700</bug_when>
    <thetext>We use the device type and OS in logs and metrics. It&apos;s very useful for us to have this information.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674353</commentid>
    <comment_count>3</comment_count>
    <who name="">goehdavi</who>
    <bug_when>2020-07-23 14:01:22 -0700</bug_when>
    <thetext>See above comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674537</commentid>
    <comment_count>4</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2020-07-23 21:34:06 -0700</bug_when>
    <thetext>(In reply to goehdavi from comment #2)
&gt; We use the device type and OS in logs and metrics. It&apos;s very useful for us
&gt; to have this information.

We understand that.

The UA string is misused for feature detection, and variance in the UA string is a huge fingerprinting vector.

Both WebKit and Safari will be locking down UA strings more going forward, not less.

We&apos;re happy to keep having the discussion with regards to the defaults in the WebKit open source project, but Apple&apos;s decision to share UA&apos;s on iPadOS and macOS is a vendor decision from Apple, not something from the WebKit open source project.

You can file a bug with Apple if you, but this WebKit bug is not valid with regards to the WebKit open source project.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>