<?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>21443</bug_id>
          
          <creation_ts>2008-10-07 13:13:44 -0700</creation_ts>
          <short_desc>Allow HAVE_ACCESSIBILITY to be overridden at build time</short_desc>
          <delta_ts>2010-06-10 16:17:58 -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>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Amanda Walker">amanda</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alp</cc>
    
    <cc>darin</cc>
    
    <cc>ddkilzer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94420</commentid>
    <comment_count>0</comment_count>
    <who name="Amanda Walker">amanda</who>
    <bug_when>2008-10-07 13:13:44 -0700</bug_when>
    <thetext>Allow the HAVE_ACCESSIBILITY build setting to be overridden at build time, rather than keying only off of the platform, as a number of other build settings already permit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94422</commentid>
    <comment_count>1</comment_count>
      <attachid>24155</attachid>
    <who name="Amanda Walker">amanda</who>
    <bug_when>2008-10-07 13:14:43 -0700</bug_when>
    <thetext>Created attachment 24155
patch to allow HAVE_ACCESSIBILITY to be overridden at build time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94424</commentid>
    <comment_count>2</comment_count>
      <attachid>24155</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-10-07 13:22:01 -0700</bug_when>
    <thetext>Comment on attachment 24155
patch to allow HAVE_ACCESSIBILITY to be overridden at build time.

I don&apos;t think this is correct.

The HAVE_ macros are supposed to represent the presence of a certain underlying capability, not whether we want to take advantage of it or not. If we want ACCESSIBILITY to be something we can turn on and off, then it probably needs to be an ENABLE thing instead.

Or this might be yet an another PLATFORM(MAC) and PLATFORM(WIN) snafu of some sort.

Also, tabs in ChangeLog.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94428</commentid>
    <comment_count>3</comment_count>
    <who name="Alp Toker">alp</who>
    <bug_when>2008-10-07 13:33:32 -0700</bug_when>
    <thetext>As Darin says, accessibility should probably have been an ENABLE, not a HAVE. Would be nice if the patch could address that.

Moreover, the #if PLATFORM(MAC) &amp;&amp; HAVE(ACCESSIBILITY) change doesn&apos;t make much sense. If you don&apos;t want accessibility in your port, you probably don&apos;t want to compile the Accessibility* classes in the first place. Can you try wrapping the entire classes with HAVE/ENABLE(ACCESSIBILITY) guards instead?

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94431</commentid>
    <comment_count>4</comment_count>
      <attachid>24155</attachid>
    <who name="Alp Toker">alp</who>
    <bug_when>2008-10-07 13:34:17 -0700</bug_when>
    <thetext>Comment on attachment 24155
patch to allow HAVE_ACCESSIBILITY to be overridden at build time.

r- based on Darin&apos;s comments and mine</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94432</commentid>
    <comment_count>5</comment_count>
    <who name="Amanda Walker">amanda</who>
    <bug_when>2008-10-07 13:39:28 -0700</bug_when>
    <thetext>(In reply to comment #2)
That makes sense, though the purpose is to suppress the underlying capability at build time.  I don&apos;t object to adding an ENABLE flag as well and requiring both to be set, but it seems unnecessarily verbose at first glance (since it would just change every occurrence of &quot;HAVE(ACCESSIBILITY)&quot; to &quot;HAVE(ACCESSIBILITY) &amp;&amp; ENABLE(ACCESSIBILITY)&quot;.

Will fix tabs in changelog--oversight.

(In reply to comment #3)
&gt; Moreover, the #if PLATFORM(MAC) &amp;&amp; HAVE(ACCESSIBILITY) change doesn&apos;t make much
&gt; sense. If you don&apos;t want accessibility in your port, you probably don&apos;t want to
&gt; compile the Accessibility* classes in the first place. Can you try wrapping the
&gt; entire classes with HAVE/ENABLE(ACCESSIBILITY) guards instead?

Great suggestion.  Will try that and upload a new patch.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98000</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-11-08 04:40:55 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 24155 [edit])
&gt; I don&apos;t think this is correct.
&gt; 
&gt; The HAVE_ macros are supposed to represent the presence of a certain underlying
&gt; capability, not whether we want to take advantage of it or not. If we want
&gt; ACCESSIBILITY to be something we can turn on and off, then it probably needs to
&gt; be an ENABLE thing instead.

(In reply to comment #3)
&gt; As Darin says, accessibility should probably have been an ENABLE, not a HAVE.
&gt; Would be nice if the patch could address that.
&gt; 
&gt; Moreover, the #if PLATFORM(MAC) &amp;&amp; HAVE(ACCESSIBILITY) change doesn&apos;t make much
&gt; sense. If you don&apos;t want accessibility in your port, you probably don&apos;t want to
&gt; compile the Accessibility* classes in the first place. Can you try wrapping the
&gt; entire classes with HAVE/ENABLE(ACCESSIBILITY) guards instead?

(In reply to comment #5)
&gt; (In reply to comment #2)
&gt; That makes sense, though the purpose is to suppress the underlying capability
&gt; at build time.  I don&apos;t object to adding an ENABLE flag as well and requiring
&gt; both to be set, but it seems unnecessarily verbose at first glance (since it
&gt; would just change every occurrence of &quot;HAVE(ACCESSIBILITY)&quot; to
&gt; &quot;HAVE(ACCESSIBILITY) &amp;&amp; ENABLE(ACCESSIBILITY)&quot;.

See Bug 21802.  I think the underlying assumption is that most (all?) platforms have some kind of an accessibility layer, so changing HAVE(ACCESSIBILITY) to ENABLE(ACCESSIBILITY) is the desired fix.

I don&apos;t think we want to be sprinkling &quot;#if HAVE(ACCESSIBILITY) &amp;&amp; ENABLE(ACCESSIBILITY)&quot; everywhere, which seems redundant.  :)

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98004</commentid>
    <comment_count>7</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-11-08 04:55:51 -0800</bug_when>
    <thetext>See also Bug 22137.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98017</commentid>
    <comment_count>8</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-11-08 09:14:06 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; I think the underlying assumption is that most (all?) platforms
&gt; have some kind of an accessibility layer, so changing HAVE(ACCESSIBILITY) to
&gt; ENABLE(ACCESSIBILITY) is the desired fix.

I&apos;d say it differently. I&apos;d say that we expect people to only enable accessibility on platforms that have an accessibility layer, and thus we don&apos;t need any indication of the presence or absence of the layer.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>24155</attachid>
            <date>2008-10-07 13:14:43 -0700</date>
            <delta_ts>2010-06-10 16:17:58 -0700</delta_ts>
            <desc>patch to allow HAVE_ACCESSIBILITY to be overridden at build time.</desc>
            <filename>awalker-a11y-patch</filename>
            <type>text/plain</type>
            <size>2392</size>
            <attacher name="Amanda Walker">amanda</attacher>
            
              <data encoding="base64">SW5kZXg6IEphdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBKYXZhU2NyaXB0
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDM3MzgzKQorKysgSmF2YVNjcmlwdENvcmUvQ2hhbmdl
TG9nCSh3b3JraW5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YmplY3QuY3BwCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xNjE5LDcgKzE2MTksNyBAQCBJbnRSZWN0IEFjY2Vzc2liaWxpdHlSZW5k
ZXJPYmplY3Q6OmJvdW5kCiAgICAgICAgICAgICBvdXJyZWN0ID0gYm91bmRpbmdCb3g7CiAgICAg
fQogICAgIAotI2lmIFBMQVRGT1JNKE1BQykKKyNpZiBQTEFURk9STShNQUMpICYmIEhBVkUoQUND
RVNTSUJJTElUWSkKICAgICByZXR1cm4gbV9yZW5kZXJlci0+ZG9jdW1lbnQoKS0+dmlldygpLT5j
b250ZW50c1RvU2NyZWVuKG91cnJlY3QpOwogI2Vsc2UKICAgICByZXR1cm4gb3VycmVjdDsKQEAg
LTE2NTIsNyArMTY1Miw3IEBAIFZpc2libGVQb3NpdGlvbiBBY2Nlc3NpYmlsaXR5UmVuZGVyT2Jq
ZWMKICAgICBJbnRQb2ludCBwb2ludFJlc3VsdDsKICAgICB3aGlsZSAoMSkgewogICAgICAgICBJ
bnRQb2ludCBvdXJwb2ludDsKLSNpZiBQTEFURk9STShNQUMpCisjaWYgUExBVEZPUk0oTUFDKSAm
JiBIQVZFKEFDQ0VTU0lCSUxJVFkpCiAgICAgICAgIG91cnBvaW50ID0gZnJhbWVWaWV3LT5zY3Jl
ZW5Ub0NvbnRlbnRzKHBvaW50KTsKICNlbHNlCiAgICAgICAgIG91cnBvaW50ID0gcG9pbnQ7Cg==
</data>
<flag name="review"
          id="10969"
          type_id="1"
          status="-"
          setter="alp"
    />
          </attachment>
      

    </bug>

</bugzilla>