<?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>201777</bug_id>
          
          <creation_ts>2019-09-13 15:18:31 -0700</creation_ts>
          <short_desc>iOS 13: Some SPI targets 13.1</short_desc>
          <delta_ts>2019-09-13 17:04:29 -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>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=201781</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Bedard">jbedard</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>ap</cc>
    
    <cc>benjamin</cc>
    
    <cc>cdumez</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1570718</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-09-13 15:18:31 -0700</bug_when>
    <thetext>There are a number of SPIs which aren&apos;t available in the 13.0 SDK, and are instead for 13.1. Our macros should reflect this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570721</commentid>
    <comment_count>1</comment_count>
      <attachid>378755</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-09-13 15:31:56 -0700</bug_when>
    <thetext>Created attachment 378755
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570730</commentid>
    <comment_count>2</comment_count>
      <attachid>378755</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2019-09-13 16:04:00 -0700</bug_when>
    <thetext>Comment on attachment 378755
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=378755&amp;action=review

r=me, because the issues are pre-existing.

&gt; Source/WTF/wtf/Platform.h:1490
&gt; +#if PLATFORM(IOS_FAMILY) &amp;&amp; __IPHONE_OS_VERSION_MIN_REQUIRED &gt;= 130000 &amp;&amp; __IPHONE_OS_VERSION_MAX_ALLOWED &gt;= 130100

PLATFORM(IOS_FAMILY) here is weird. The check for __IPHONE_OS_VERSION_MIN_REQUIRED makes it so that the code is only enabled on iOS, so we should change it to PLATFORM(IOS).

But maybe this is not intentional? May be worth checking with a domain expert.

&gt; Source/WTF/wtf/Platform.h:1544
&gt; +#if (PLATFORM(MAC) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101500) || (PLATFORM(IOS_FAMILY) &amp;&amp; __IPHONE_OS_VERSION_MIN_REQUIRED &gt;= 130000 &amp;&amp; __IPHONE_OS_VERSION_MAX_ALLOWED &gt;= 130100)

Same here, PLATFORM(IOS_FAMILY) is either misleading or incorrect.

To bee 100% precise, we would need a HAVE macro that would be accurate on all platforms that have the function, and a USE macro that tells use where we choose to use it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570737</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-09-13 16:17:25 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #2)
&gt; Comment on attachment 378755 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=378755&amp;action=review
&gt; 
&gt; r=me, because the issues are pre-existing.
&gt; 
&gt; &gt; Source/WTF/wtf/Platform.h:1490
&gt; &gt; +#if PLATFORM(IOS_FAMILY) &amp;&amp; __IPHONE_OS_VERSION_MIN_REQUIRED &gt;= 130000 &amp;&amp; __IPHONE_OS_VERSION_MAX_ALLOWED &gt;= 130100
&gt; 
&gt; PLATFORM(IOS_FAMILY) here is weird. The check for
&gt; __IPHONE_OS_VERSION_MIN_REQUIRED makes it so that the code is only enabled
&gt; on iOS, so we should change it to PLATFORM(IOS).
&gt; 
&gt; But maybe this is not intentional? May be worth checking with a domain
&gt; expert.
&gt; 
&gt; &gt; Source/WTF/wtf/Platform.h:1544
&gt; &gt; +#if (PLATFORM(MAC) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101500) || (PLATFORM(IOS_FAMILY) &amp;&amp; __IPHONE_OS_VERSION_MIN_REQUIRED &gt;= 130000 &amp;&amp; __IPHONE_OS_VERSION_MAX_ALLOWED &gt;= 130100)
&gt; 
&gt; Same here, PLATFORM(IOS_FAMILY) is either misleading or incorrect.
&gt; 
&gt; To bee 100% precise, we would need a HAVE macro that would be accurate on
&gt; all platforms that have the function, and a USE macro that tells use where
&gt; we choose to use it.

I file &lt;https://bugs.webkit.org/show_bug.cgi?id=201781&gt;...I&apos;d like to get those changes right, seems like the addition of the IOS_FAMILY macro has made some things more confusing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570739</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2019-09-13 16:21:37 -0700</bug_when>
    <thetext>&gt; seems like the addition of the IOS_FAMILY macro has made some things more confusing.

PLATFORM(IOS_FAMILY) is a new name for PLATFORM(IOS), which was a misnomer. It&apos;s less confusing, but it uncovered a lot of incorrect assumptions that people made thinking that PLATFORM(IOS) is only true on iOS. Keith Rollin recently fixed many of those.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570759</commentid>
    <comment_count>5</comment_count>
      <attachid>378755</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-09-13 17:00:51 -0700</bug_when>
    <thetext>Comment on attachment 378755
Patch

Clearing flags on attachment: 378755

Committed r249859: &lt;https://trac.webkit.org/changeset/249859&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570760</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-09-13 17:00:53 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570761</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-09-13 17:04:29 -0700</bug_when>
    <thetext>&lt;rdar://problem/55358068&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>378755</attachid>
            <date>2019-09-13 15:31:56 -0700</date>
            <delta_ts>2019-09-13 17:00:51 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-201777-20190913153156.patch</filename>
            <type>text/plain</type>
            <size>1499</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XVEYvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XVEYvQ2hh
bmdlTG9nCShyZXZpc2lvbiAyNDk4NTYpCisrKyBTb3VyY2UvV1RGL0NoYW5nZUxvZwkod29ya2lu
ZyBjb3B5KQpAQCAtMSwzICsxLDEyIEBACisyMDE5LTA5LTEzICBKb25hdGhhbiBCZWRhcmQgIDxq
YmVkYXJkQGFwcGxlLmNvbT4KKworICAgICAgICBpT1MgMTM6IFNv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