<?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>214707</bug_id>
          
          <creation_ts>2020-07-23 15:45:05 -0700</creation_ts>
          <short_desc>Remove definition of NSImageSymbolScale, which is part of the beta 3 SDK</short_desc>
          <delta_ts>2020-07-27 13:11:38 -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>New Bugs</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=214844</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="Saagar Jha">saagar</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>jbedard</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1674425</commentid>
    <comment_count>0</comment_count>
    <who name="Saagar Jha">saagar</who>
    <bug_when>2020-07-23 15:45:05 -0700</bug_when>
    <thetext>Remove definition of NSImageSymbolScale, which is part of the beta 3 SDK</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674453</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-07-23 16:28:57 -0700</bug_when>
    <thetext>I&apos;ll take a look at this tomorrow. Hadn&apos;t tried building with the Seed 3 SDK yet, so there may be more issues like this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674455</commentid>
    <comment_count>2</comment_count>
    <who name="Saagar Jha">saagar</who>
    <bug_when>2020-07-23 16:30:33 -0700</bug_when>
    <thetext>Sure. I have a patch ready (as the bug title might suggest) but webkit-patch is failing halfway through on my computer, so I got stuck with just the bug report :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674505</commentid>
    <comment_count>3</comment_count>
      <attachid>405109</attachid>
    <who name="Saagar Jha">saagar</who>
    <bug_when>2020-07-23 18:03:27 -0700</bug_when>
    <thetext>Created attachment 405109
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674631</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-07-24 07:27:21 -0700</bug_when>
    <thetext>My only question is do we care about keeping the Seed 1 build working. I think the answer is &quot;no&quot;, but I also know we&apos;re about to bring up Seed 3 EWS builders, which isn&apos;t something we usually do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674693</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-07-24 09:30:38 -0700</bug_when>
    <thetext>We do not care about building against old seed SDKs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674701</commentid>
    <comment_count>6</comment_count>
      <attachid>405109</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-07-24 09:36:33 -0700</bug_when>
    <thetext>Comment on attachment 405109
Patch

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

But also, we should probably add preprocessor checks in this file, as nothing here says that this is new with Big Sur.

Looks like using these is guarded by HAVE(ALTERNATE_ICONS).

&gt; Source/WebCore/PAL/pal/spi/mac/NSImageSPI.h:39
&gt;  extern const NSImageHintKey NSImageHintSymbolFont;
&gt;  extern const NSImageHintKey NSImageHintSymbolScale;

Are these still not part of SDK, even though NSImageSymbolScale is?

&gt; Source/WebCore/PAL/pal/spi/mac/NSImageSPI.h:42
&gt;  - (void)lockFocusWithRect:(NSRect)rect context:(nullable NSGraphicsContext *)context hints:(nullable NSDictionary *)hints flipped:(BOOL)flipped;

Not seeing an underscore makes me wonder if this is SDK too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674704</commentid>
    <comment_count>7</comment_count>
    <who name="Saagar Jha">saagar</who>
    <bug_when>2020-07-24 09:41:16 -0700</bug_when>
    <thetext>I&apos;m not seeing either in my SDK, it&apos;s just NSImageSymbolScale that seems to have been added. Did you want me to wrap the new stuff from Big Sur in HAVE(ALTERNATE_ICONS)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674711</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-07-24 09:48:18 -0700</bug_when>
    <thetext>I think that it does need to be wrapped, but also we need a better name for the macro. Not sure if it&apos;s best for you to just wrap declarations in this header, or for someone from Apple to make the bigger change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1675357</commentid>
    <comment_count>9</comment_count>
      <attachid>405109</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-07-27 12:57:14 -0700</bug_when>
    <thetext>Comment on attachment 405109
Patch

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

&gt;&gt; Source/WebCore/PAL/pal/spi/mac/NSImageSPI.h:39
&gt;&gt;  extern const NSImageHintKey NSImageHintSymbolScale;
&gt; 
&gt; Are these still not part of SDK, even though NSImageSymbolScale is?

Verified that these are not part of the SDK.

&gt;&gt; Source/WebCore/PAL/pal/spi/mac/NSImageSPI.h:42
&gt;&gt;  - (void)lockFocusWithRect:(NSRect)rect context:(nullable NSGraphicsContext *)context hints:(nullable NSDictionary *)hints flipped:(BOOL)flipped;
&gt; 
&gt; Not seeing an underscore makes me wonder if this is SDK too.

That actually pre-dates Big Sur. And yes, it&apos;s still required.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1675362</commentid>
    <comment_count>10</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-07-27 13:03:50 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #8)
&gt; I think that it does need to be wrapped, but also we need a better name for
&gt; the macro. Not sure if it&apos;s best for you to just wrap declarations in this
&gt; header, or for someone from Apple to make the bigger change.

We can do the wrapping, will open a different bug for it. But it doesn&apos;t seem like we actually need to.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1675367</commentid>
    <comment_count>11</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-07-27 13:07:02 -0700</bug_when>
    <thetext>Committed r264939: &lt;https://trac.webkit.org/changeset/264939&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 405109.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1675369</commentid>
    <comment_count>12</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-07-27 13:07:26 -0700</bug_when>
    <thetext>&lt;rdar://problem/66178015&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1675372</commentid>
    <comment_count>13</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-07-27 13:11:38 -0700</bug_when>
    <thetext>&gt; We can do the wrapping, will open a different bug for it. But it doesn&apos;t
&gt; seem like we actually need to.

This is necessary for EWS to produce a compile time error if one attempts to use SPIs on an OS version that didn&apos;t have them.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>405109</attachid>
            <date>2020-07-23 18:03:27 -0700</date>
            <delta_ts>2020-07-27 13:07:02 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-214707-20200723180327.patch</filename>
            <type>text/plain</type>
            <size>1492</size>
            <attacher name="Saagar Jha">saagar</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZ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