<?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>163088</bug_id>
          
          <creation_ts>2016-10-06 14:30:11 -0700</creation_ts>
          <short_desc>Web Inspector: AXI: focused/focusable state should be based on Accessibility Object instead of Element</short_desc>
          <delta_ts>2016-10-18 16:07:00 -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>Safari 10</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="Aaron Chu">aaron_chu</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aaron_chu</cc>
    
    <cc>commit-queue</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1237357</commentid>
    <comment_count>0</comment_count>
    <who name="Aaron Chu">aaron_chu</who>
    <bug_when>2016-10-06 14:30:11 -0700</bug_when>
    <thetext>The current focus implementation uses a DOM focusable check instead of and accessibility focusable check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1237358</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Chu">aaron_chu</who>
    <bug_when>2016-10-06 14:33:09 -0700</bug_when>
    <thetext>&lt;rdar://problem/16421985&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1237659</commentid>
    <comment_count>2</comment_count>
      <attachid>290941</attachid>
    <who name="Aaron Chu">aaron_chu</who>
    <bug_when>2016-10-07 10:41:24 -0700</bug_when>
    <thetext>Created attachment 290941
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1237729</commentid>
    <comment_count>3</comment_count>
      <attachid>290941</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-10-07 12:21:11 -0700</bug_when>
    <thetext>Comment on attachment 290941
Patch

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

&gt; Source/WebCore/ChangeLog:13
&gt; +        Covered by existing tests: 
&gt; +        LayoutTests/inspector/dom/getAccessibilityPropertiesForNode.html

Maybe the code is exercised by that test, but does that test show the bug? If it did, then there would need to be a test result update in this patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1237740</commentid>
    <comment_count>4</comment_count>
      <attachid>290941</attachid>
    <who name="Aaron Chu">aaron_chu</who>
    <bug_when>2016-10-07 12:31:02 -0700</bug_when>
    <thetext>Comment on attachment 290941
Patch

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

&gt;&gt; Source/WebCore/ChangeLog:13
&gt;&gt; +        LayoutTests/inspector/dom/getAccessibilityPropertiesForNode.html
&gt; 
&gt; Maybe the code is exercised by that test, but does that test show the bug? If it did, then there would need to be a test result update in this patch.

I ran the test with the new code and the result was consistant with the result. Would that suffice?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1238942</commentid>
    <comment_count>5</comment_count>
      <attachid>290941</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2016-10-11 12:07:00 -0700</bug_when>
    <thetext>Comment on attachment 290941
Patch

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

&gt;&gt;&gt; Source/WebCore/ChangeLog:13
&gt;&gt;&gt; +        LayoutTests/inspector/dom/getAccessibilityPropertiesForNode.html
&gt;&gt; 
&gt;&gt; Maybe the code is exercised by that test, but does that test show the bug? If it did, then there would need to be a test result update in this patch.
&gt; 
&gt; I ran the test with the new code and the result was consistant with the result. Would that suffice?

Darin has a point. If this change is fixing an issue, then there should be a test that shows what changed. The existing test didn&apos;t change its results, so whatever this patch is fixing is not included in that test! Ideally you would update the test to cover the case that this patch fixes. That will ensure the issue fixed by this patch doesn&apos;t regress in the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1241655</commentid>
    <comment_count>6</comment_count>
      <attachid>290941</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2016-10-18 15:43:34 -0700</bug_when>
    <thetext>Comment on attachment 290941
Patch

From Aaron via email:

&gt; Technically there isn’t an issue, noting was breaking. I think James
&gt; original concern was that the isFocusable was not “authenticatic”
&gt; because it was not coming from an AXObject while we are trying to
&gt; show the related properties in the AX Inspector.

Sounds good to land.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1241662</commentid>
    <comment_count>7</comment_count>
      <attachid>290941</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-10-18 16:06:56 -0700</bug_when>
    <thetext>Comment on attachment 290941
Patch

Clearing flags on attachment: 290941

Committed r207496: &lt;http://trac.webkit.org/changeset/207496&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1241663</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-10-18 16:07:00 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>290941</attachid>
            <date>2016-10-07 10:41:24 -0700</date>
            <delta_ts>2016-10-18 16:06:56 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-163088-20161007103809.patch</filename>
            <type>text/plain</type>
            <size>1822</size>
            <attacher name="Aaron Chu">aaron_chu</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjA2ODg0CmR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