<?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>138905</bug_id>
          
          <creation_ts>2014-11-19 18:13:53 -0800</creation_ts>
          <short_desc>AX: com.apple.WebKit.WebContent crashed at WebCore: WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored const</short_desc>
          <delta_ts>2014-11-21 16:11:46 -0800</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>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>commit-queue</cc>
    
    <cc>dmazzoni</cc>
    
    <cc>jcraig</cc>
    
    <cc>jdiggs</cc>
    
    <cc>mario</cc>
    
    <cc>samuel_white</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1050028</commentid>
    <comment_count>0</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2014-11-19 18:13:53 -0800</bug_when>
    <thetext>Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000008
Triggered by Thread:  0

Filtered syslog:
None found

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   WebCore                       	0x33714618 WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored() const + 180 (RenderObject.h:160)
1   WebCore                       	0x337061e8 WebCore::AccessibilityObject::accessibilityIsIgnored() const + 212 (AccessibilityObject.cpp:2517)
2   WebCore                       	0x33703c40 WebCore::AXObjectCache::getOrCreate(WebCore::RenderObject*) + 1364 (AXObjectCache.cpp:435)
3   WebCore                       	0x33711f70 WebCore::AccessibilityObject::isARIAHidden() const + 188 (AccessibilityObject.cpp:2468)
4   WebCore                       	0x337144da WebCore::AccessibilityRenderObject::defaultObjectInclusion() const + 94 (AccessibilityObject.cpp:2489)
5   WebCore                       	0x33714578 WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored() const + 20 (AccessibilityRenderObject.cpp:1169)
6   WebCore                       	0x337061e8 WebCore::AccessibilityObject::accessibilityIsIgnored() const + 212 (AccessibilityObject.cpp:2517)
7   WebCore                       	0x33703c40 WebCore::AXObjectCache::getOrCreate(WebCore::RenderObject*) + 1364 (AXObjectCache.cpp:435)
8   WebCore                       	0x33711f70 WebCore::AccessibilityObject::isARIAHidden() const + 188 (AccessibilityObject.cpp:2468)
9   WebCore                       	0x337144da WebCore::AccessibilityRenderObject::defaultObjectInclusion() const + 94 (AccessibilityObject.cpp:2489)
10  WebCore                       	0x33714578 WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored() const + 20 (AccessibilityRenderObject.cpp:1169)
11  WebCore                       	0x337061e8 WebCore::AccessibilityObject::accessibilityIsIgnored() const + 212 (AccessibilityObject.cpp:2517)
12  WebCore                       	0x33703c40 WebCore::AXObjectCache::getOrCreate(WebCore::RenderObject*) + 1364 (AXObjectCache.cpp:435)
13  WebCore                       	0x33711f70 WebCore::AccessibilityObject::isARIAHidden() const + 188 (AccessibilityObject.cpp:2468)
14  WebCore                       	0x337144da WebCore::AccessibilityRenderObject::defaultObjectInclusion() const + 94 (AccessibilityObject.cpp:2489)
15  WebCore                       	0x33714578 WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored() const + 20 (AccessibilityRenderObject.cpp:1169)
16  WebCore                       	0x337061e8 WebCore::AccessibilityObject::accessibilityIsIgnored() const + 212 (AccessibilityObject.cpp:2517)
17  WebCore                       	0x33703c40 WebCore::AXObjectCache::getOrCreate(WebCore::RenderObject*) + 1364 (AXObjectCache.cpp:435)
18  WebCore                       	0x33704432 WebCore::AXObjectCache::textChanged(WebCore::RenderObject*) + 6 (AXObjectCache.cpp:625)
19  WebCore                       	0x33e1f1ea WebCore::RenderText::setText(WTF::String const&amp;, bool) + 274 (RenderText.cpp:1109)
20  WebCore                       	0x3360bc50 WebCore::RenderMenuList::setText(WTF::String const&amp;) + 76 (RenderMenuList.cpp:296)
21  WebCore                       	0x3360bae0 WebCore::RenderMenuList::setTextFromOption(int) + 376 (RenderMenuList.cpp:287)
22  WebCore                       	0x3360ca88 WebCore::HTMLSelectElement::selectOption(int, unsigned int) + 360 (HTMLSelectElement.cpp:894)
23  WebCore                       	0x33b55618 WebCore::setJSHTMLSelectElementSelectedIndex(JSC::ExecState*, JSC::JSObject*, long long, long long) + 260 (JSHTMLSelectElement.cpp:723)
24  JavaScriptCore                	0x28170b3a JSC::callCustomSetter(JSC::ExecState*, JSC::JSValue, JSC::JSObject*, JSC::JSValue, JSC::JSValue) + 34 (CustomGetterSetter.cpp:44)
25  JavaScriptCore                	0x28009622 JSC::JSObject::put(JSC::JSCell*, JSC::ExecState*, JSC::PropertyName, JSC::JSValue, JSC::PutPropertySlot&amp;) + 682 (JSObject.cpp:383)
26  WebCore                       	0x336af89c WebCore::JSHTMLSelectElement::put(JSC::JSCell*, JSC::ExecState*, JSC::PropertyName, JSC::JSValue, JSC::PutPropertySlot&amp;) + 64 


&lt;rdar://problem/19036181&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1050064</commentid>
    <comment_count>1</comment_count>
      <attachid>241928</attachid>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2014-11-20 00:15:11 -0800</bug_when>
    <thetext>Created attachment 241928
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1050105</commentid>
    <comment_count>2</comment_count>
      <attachid>241928</attachid>
    <who name="Mario Sanchez Prada">mario</who>
    <bug_when>2014-11-20 03:01:42 -0800</bug_when>
    <thetext>Comment on attachment 241928
patch

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

&gt; Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1197
&gt; +    if (m_renderer &amp;&amp; ancestorsOfType&lt;RenderMenuList&gt;(*m_renderer).first())

You early returned on !m_renderer, so I don&apos;t think you need this extra check, unless any of the previous calls cause any side effect on the renderer (which should not be the case)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1050480</commentid>
    <comment_count>3</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2014-11-21 09:29:07 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Comment on attachment 241928 [details]
&gt; patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=241928&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1197
&gt; &gt; +    if (m_renderer &amp;&amp; ancestorsOfType&lt;RenderMenuList&gt;(*m_renderer).first())
&gt; 
&gt; You early returned on !m_renderer, so I don&apos;t think you need this extra
&gt; check, unless any of the previous calls cause any side effect on the
&gt; renderer (which should not be the case)

I think there is a chance that m_renderer may be set to nil by something else in the method (descendantOfBarrenChildren())? It&apos;s possible that going up the render tree is causing that. I don&apos;t have any evidence of that and I&apos;ve never seen it happen, but the crash report leaves open that interpretation. 

do you think we should keep both checks just in case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1050490</commentid>
    <comment_count>4</comment_count>
      <attachid>241928</attachid>
    <who name="Mario Sanchez Prada">mario</who>
    <bug_when>2014-11-21 10:39:18 -0800</bug_when>
    <thetext>Comment on attachment 241928
patch

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

&gt;&gt;&gt; Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1197
&gt;&gt;&gt; +    if (m_renderer &amp;&amp; ancestorsOfType&lt;RenderMenuList&gt;(*m_renderer).first())
&gt;&gt; 
&gt;&gt; You early returned on !m_renderer, so I don&apos;t think you need this extra check, unless any of the previous calls cause any side effect on the renderer (which should not be the case)
&gt; 
&gt; I think there is a chance that m_renderer may be set to nil by something else in the method (descendantOfBarrenChildren())? It&apos;s possible that going up the render tree is causing that. I don&apos;t have any evidence of that and I&apos;ve never seen it happen, but the crash report leaves open that interpretation. 
&gt; 
&gt; do you think we should keep both checks just in case?

I guess that the &quot;fearful me&quot; agree on that it would perhaps be worth leaving the two checks, just in case.

Anyway, as this is an speculative fix, either option (to leave both checks or only one) will be a gamble, so I think I lean more towards the safest one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1050630</commentid>
    <comment_count>5</comment_count>
      <attachid>241928</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-11-21 16:11:39 -0800</bug_when>
    <thetext>Comment on attachment 241928
patch

Clearing flags on attachment: 241928

Committed r176484: &lt;http://trac.webkit.org/changeset/176484&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1050631</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-11-21 16:11:46 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>241928</attachid>
            <date>2014-11-20 00:15:11 -0800</date>
            <delta_ts>2014-11-21 16:11:39 -0800</delta_ts>
            <desc>patch</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>2002</size>
            <attacher name="chris fleizach">cfleizach</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZW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