<?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>214202</bug_id>
          
          <creation_ts>2020-07-10 14:57:37 -0700</creation_ts>
          <short_desc>AX: Build failure for catalyst</short_desc>
          <delta_ts>2020-07-10 16:16:16 -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>Accessibility</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="chris fleizach">cfleizach</reporter>
          <assigned_to name="chris fleizach">cfleizach</assigned_to>
          <cc>aboxhall</cc>
    
    <cc>apinheiro</cc>
    
    <cc>dmazzoni</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>jcraig</cc>
    
    <cc>jdiggs</cc>
    
    <cc>samuel_white</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1670594</commentid>
    <comment_count>0</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2020-07-10 14:57:37 -0700</bug_when>
    <thetext>./accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:1512:12: error: cannot initialize return object of type &apos;BOOL&apos; (aka &apos;signed char&apos;) with an rvalue of type &apos;WebCore::AXCoreObject *&apos;
    return Accessibility::findAncestor&lt;AXCoreObject&gt;(*self.axBackingObject, false, [] (const AXCoreObject&amp; object) {
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:1522:12: error: cannot initialize return object of type &apos;BOOL&apos; (aka &apos;signed char&apos;) with an rvalue of type &apos;WebCore::AXCoreObject *&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1670595</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-07-10 14:57:48 -0700</bug_when>
    <thetext>&lt;rdar://problem/65366125&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1670600</commentid>
    <comment_count>2</comment_count>
      <attachid>404006</attachid>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2020-07-10 15:02:37 -0700</bug_when>
    <thetext>Created attachment 404006
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1670606</commentid>
    <comment_count>3</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2020-07-10 15:11:32 -0700</bug_when>
    <thetext>wouldn&apos;t !(!) work here as well?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1670618</commentid>
    <comment_count>4</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2020-07-10 15:36:30 -0700</bug_when>
    <thetext>(In reply to zalan from comment #3)
&gt; wouldn&apos;t !(!) work here as well?

I think so but isn&apos;t comparing against nullptr more clear?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1670621</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-07-10 15:42:20 -0700</bug_when>
    <thetext>Committed r264243: &lt;https://trac.webkit.org/changeset/264243&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 404006.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1670622</commentid>
    <comment_count>6</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2020-07-10 15:45:35 -0700</bug_when>
    <thetext>(In reply to chris fleizach from comment #4)
&gt; (In reply to zalan from comment #3)
&gt; &gt; wouldn&apos;t !(!) work here as well?
&gt; 
&gt; I think so but isn&apos;t comparing against nullptr more clear?
WebKit prefers it the other way around (instead of [if (foo != nullptr)] we usually go like [if (!foo)])</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1670623</commentid>
    <comment_count>7</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2020-07-10 15:50:24 -0700</bug_when>
    <thetext>(In reply to zalan from comment #6)
&gt; (In reply to chris fleizach from comment #4)
&gt; &gt; (In reply to zalan from comment #3)
&gt; &gt; &gt; wouldn&apos;t !(!) work here as well?
&gt; &gt; 
&gt; &gt; I think so but isn&apos;t comparing against nullptr more clear?
&gt; WebKit prefers it the other way around (instead of [if (foo != nullptr)] we
&gt; usually go like [if (!foo)])

So in this case you think

return !(!Accessibility::findAncestor&lt;AXCoreObject&gt;(*self.axBackingObject, false, [] (const AXCoreObject&amp; object) {
        return object.roleValue() == AccessibilityRole::DescriptionListTerm;
}));

would be better suited?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1670627</commentid>
    <comment_count>8</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2020-07-10 15:55:23 -0700</bug_when>
    <thetext>(In reply to chris fleizach from comment #7)
&gt; (In reply to zalan from comment #6)
&gt; &gt; (In reply to chris fleizach from comment #4)
&gt; &gt; &gt; (In reply to zalan from comment #3)
&gt; &gt; &gt; &gt; wouldn&apos;t !(!) work here as well?
&gt; &gt; &gt; 
&gt; &gt; &gt; I think so but isn&apos;t comparing against nullptr more clear?
&gt; &gt; WebKit prefers it the other way around (instead of [if (foo != nullptr)] we
&gt; &gt; usually go like [if (!foo)])
&gt; 
&gt; So in this case you think
&gt; 
&gt; return !(!Accessibility::findAncestor&lt;AXCoreObject&gt;(*self.axBackingObject,
&gt; false, [] (const AXCoreObject&amp; object) {
&gt;         return object.roleValue() == AccessibilityRole::DescriptionListTerm;
&gt; }));
&gt; 
&gt; would be better suited?
Yeah, I would change it to !!Accessibility::findAncestor as a drive-by fix whenever you make some changes in here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1670643</commentid>
    <comment_count>9</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2020-07-10 16:16:16 -0700</bug_when>
    <thetext>(In reply to zalan from comment #8)
&gt; (In reply to chris fleizach from comment #7)
&gt; &gt; (In reply to zalan from comment #6)
&gt; &gt; &gt; (In reply to chris fleizach from comment #4)
&gt; &gt; &gt; &gt; (In reply to zalan from comment #3)
&gt; &gt; &gt; &gt; &gt; wouldn&apos;t !(!) work here as well?
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; I think so but isn&apos;t comparing against nullptr more clear?
&gt; &gt; &gt; WebKit prefers it the other way around (instead of [if (foo != nullptr)] we
&gt; &gt; &gt; usually go like [if (!foo)])
&gt; &gt; 
&gt; &gt; So in this case you think
&gt; &gt; 
&gt; &gt; return !(!Accessibility::findAncestor&lt;AXCoreObject&gt;(*self.axBackingObject,
&gt; &gt; false, [] (const AXCoreObject&amp; object) {
&gt; &gt;         return object.roleValue() == AccessibilityRole::DescriptionListTerm;
&gt; &gt; }));
&gt; &gt; 
&gt; &gt; would be better suited?
&gt; Yeah, I would change it to !!Accessibility::findAncestor as a drive-by fix
&gt; whenever you make some changes in here.

Noted</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>404006</attachid>
            <date>2020-07-10 15:02:37 -0700</date>
            <delta_ts>2020-07-10 15:42:21 -0700</delta_ts>
            <desc>patch</desc>
            <filename>file_214202.txt</filename>
            <type>text/plain</type>
            <size>1915</size>
            <attacher name="chris fleizach">cfleizach</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdp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