<?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>120191</bug_id>
          
          <creation_ts>2013-08-22 18:14:22 -0700</creation_ts>
          <short_desc>Editable text nodes should be have EditableTextRole</short_desc>
          <delta_ts>2013-10-30 10:24: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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Roger Fong">roger_fong</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cfleizach</cc>
    
    <cc>roger_fong</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>920065</commentid>
    <comment_count>0</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-08-22 18:14:22 -0700</bug_when>
    <thetext>previously they were considered static text.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920066</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2013-08-22 18:14:47 -0700</bug_when>
    <thetext>&lt;rdar://problem/14815202&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920293</commentid>
    <comment_count>2</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-08-23 10:49:48 -0700</bug_when>
    <thetext>I&apos;m going to add 
+    if (node()-&gt;isTextNode() &amp;&amp; node()-&gt;isContentEditable())
+        return EditableTextRole;
to determineAccessibilityRole in AccessibilityNodeObject.cpp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920306</commentid>
    <comment_count>3</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2013-08-23 11:17:06 -0700</bug_when>
    <thetext>On the Mac, I believe we mark these are what they normally are (DivRole, or GroupRole) but we mark that the value is writable. VO has some good to handle that then.

I think this change is OK, but it will cause some failures in Mac and maybe others because this role will need to be handled the right way to return the right platform specific role</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920307</commentid>
    <comment_count>4</comment_count>
      <attachid>209477</attachid>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-08-23 11:17:46 -0700</bug_when>
    <thetext>Created attachment 209477
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920313</commentid>
    <comment_count>5</comment_count>
      <attachid>209477</attachid>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2013-08-23 11:27:30 -0700</bug_when>
    <thetext>Comment on attachment 209477
patch

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

&gt; accessibility/AccessibilityNodeObject.cpp:281
&gt; +        return EditableTextRole;

this should probably go inside the next line so we have
if (node()-&gt;isTextNode()) {
   if (node()-&gt;isContent())
      return Editable
   return Static
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920319</commentid>
    <comment_count>6</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-08-23 11:39:49 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; On the Mac, I believe we mark these are what they normally are (DivRole, or GroupRole) but we mark that the value is writable. VO has some good to handle that then.
&gt; 
&gt; I think this change is OK, but it will cause some failures in Mac and maybe others because this role will need to be handled the right way to return the right platform specific role

How about I add a isTextNode() &amp;&amp; isContentEditable() check to AccessibleBase (windows specific) where I decide to create the AccessibleText instance.

That way I won&apos;t have to modify this platform agnostic stuff.
That sound okay?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920322</commentid>
    <comment_count>7</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2013-08-23 11:41:06 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #3)
&gt; &gt; On the Mac, I believe we mark these are what they normally are (DivRole, or GroupRole) but we mark that the value is writable. VO has some good to handle that then.
&gt; &gt; 
&gt; &gt; I think this change is OK, but it will cause some failures in Mac and maybe others because this role will need to be handled the right way to return the right platform specific role
&gt; 
&gt; How about I add a isTextNode() &amp;&amp; isContentEditable() check to AccessibleBase (windows specific) where I decide to create the AccessibleText instance.
&gt; 
&gt; That way I won&apos;t have to modify this platform agnostic stuff.
&gt; That sound okay?

Sounds ok</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920324</commentid>
    <comment_count>8</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-08-23 11:42:17 -0700</bug_when>
    <thetext>Will move this check into Windows specific code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>944972</commentid>
    <comment_count>9</comment_count>
      <attachid>209477</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-10-30 10:24:16 -0700</bug_when>
    <thetext>Comment on attachment 209477
patch

Clearing flag to remove from review queue.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>209477</attachid>
            <date>2013-08-23 11:17:46 -0700</date>
            <delta_ts>2013-10-30 10:24:16 -0700</delta_ts>
            <desc>patch</desc>
            <filename>patch3.patch</filename>
            <type>text/plain</type>
            <size>1147</size>
            <attacher name="Roger Fong">roger_fong</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT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AtMjc3LDYgKzI3Nyw4IEBACiAKICAgICBpZiAobm9kZSgpLT5pc0xpbmso
KSkKICAgICAgICAgcmV0dXJuIFdlYkNvcmVMaW5rUm9sZTsKKyAgICBpZiAobm9kZSgpLT5pc1Rl
eHROb2RlKCkgJiYgbm9kZSgpLT5pc0NvbnRlbnRFZGl0YWJsZSgpKQorICAgICAgICByZXR1cm4g
RWRpdGFibGVUZXh0Um9sZTsKICAgICBpZiAobm9kZSgpLT5pc1RleHROb2RlKCkpCiAgICAgICAg
IHJldHVybiBTdGF0aWNUZXh0Um9sZTsKICAgICBpZiAobm9kZSgpLT5oYXNUYWdOYW1lKGJ1dHRv
blRhZykpCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>