<?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>143188</bug_id>
          
          <creation_ts>2015-03-28 17:27:49 -0700</creation_ts>
          <short_desc>AX: WebKitWebProcess crashes in a11y code for some websites</short_desc>
          <delta_ts>2022-11-17 17:35:14 -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="Debarshi Ray">rishi.is</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>andresg_22</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>cfleizach</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>tyler_w</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1080981</commentid>
    <comment_count>0</comment_count>
    <who name="Debarshi Ray">rishi.is</who>
    <bug_when>2015-03-28 17:27:49 -0700</bug_when>
    <thetext>I have been seeing this particular crash with some web sites. Here is an example:
1) Go to https://twitter.com/marinaz
2) Find this tweet: &quot;Asked @lwnnet to make its site a safe space for reading news about Linux ...&quot;
3) Ctrl+click the LWN link and you will see the WebKitWebProcess for the new tab crash

Core was generated by `/usr/libexec/webkit2gtk-4.0/WebKitWebProcess 22&apos;.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  WebCore::AccessibilityMenuList::isCollapsed (this=0x7f712d9c09a0)
    at /usr/src/debug/webkitgtk-2.6.5/Source/WebCore/accessibility/AccessibilityMenuList.cpp:92
92	    return !static_cast&lt;RenderMenuList*&gt;(m_renderer)-&gt;popupIsVisible();
(gdb) bt
#0  WebCore::AccessibilityMenuList::isCollapsed (this=0x7f712d9c09a0)
    at /usr/src/debug/webkitgtk-2.6.5/Source/WebCore/accessibility/AccessibilityMenuList.cpp:92
#1  0x00007f719e3fee4d in notifyChildrenSelectionChange (object=0x7f712d9c09a0)
    at /usr/src/debug/webkitgtk-2.6.5/Source/WebCore/accessibility/atk/AXObjectCacheAtk.cpp:180
#2  WebCore::AXObjectCache::postPlatformNotification (
    this=this@entry=0x7f713c116e00, 
    coreObject=coreObject@entry=0x7f712d9c09a0, 
    notification=notification@entry=(anonymous namespace)::AXObjectCache::AXMenuListValueChanged)
    at /usr/src/debug/webkitgtk-2.6.5/Source/WebCore/accessibility/atk/AXObjectCacheAtk.cpp:211
#3  0x00007f719d854b96 in WebCore::AXObjectCache::postNotification (
    this=this@entry=0x7f713c116e00, object=object@entry=0x7f712d9c09a0, 
    document=document@entry=0x7f719f4c6700, 
    notification=notification@entry=(anonymous namespace)::AXObjectCache::AXMenuListValueChanged, 
    postTarget=postTarget@entry=(anonymous namespace)::TargetElement, 
    postType=postType@entry=(anonymous namespace)::PostSynchronously)
    at /usr/src/debug/webkitgtk-2.6.5/Source/WebCore/accessibility/AXObjectCache.cpp:807
#4  0x00007f719d860220 in WebCore::AccessibilityMenuList::didUpdateActiveOption
    (this=0x7f712d9c09a0, optionIndex=1)
    at /usr/src/debug/webkitgtk-2.6.5/Source/WebCore/accessibility/AccessibilityMenuList.cpp:130
#5  0x00007f719e11ec5d in WebCore::RenderMenuList::setTextFromOption (
    this=0x7f71074d55a0, optionIndex=1)
    at /usr/src/debug/webkitgtk-2.6.5/Source/WebCore/rendering/RenderMenuList.cpp:288
#6  0x00007f719dc2f168 in WebCore::HTMLSelectElement::selectOption (
    this=0x7f710693a000, optionIndex=&lt;optimized out&gt;, flags=0)
    at /usr/src/debug/webkitgtk-2.6.5/Source/WebCore/html/HTMLSelectElement.cpp:893

#7  0x00007f719c0e5f9e in JSC::JSObject::put (cell=0x7f7106fa40b0, 
    exec=0x7ffee3cb0130, propertyName=..., value=..., slot=...)
    at /usr/src/debug/webkitgtk-2.6.5/Source/JavaScriptCore/runtime/JSObject.cpp:383
#8  0x00007f719be506a8 in operationPutByValInternal&lt;false, false&gt; (
    encodedValue=7, encodedProperty=&lt;optimized out&gt;, 
    encodedBase=140123425095856, exec=0x7ffee3cb0130)
    at /usr/src/debug/webkitgtk-2.6.5/Source/JavaScriptCore/dfg/DFGOperations.cpp:130
#9  JSC::DFG::operationPutByValNonStrict (exec=0x7ffee3cb0130, 
    encodedBase=140123425095856, encodedProperty=&lt;optimized out&gt;, 
    encodedValue=7)
    at /usr/src/debug/webkitgtk-2.6.5/Source/JavaScriptCore/dfg/DFGOperations.cpp:383
#10 0x00007f713d5f2938 in ?? ()
#11 0x0000000000000000 in ?? ()
(gdb)

I have:
webkitgtk4-2.6.5-1.fc21.x86_64
epiphany-3.14.2-4.fc21.x86_64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1080982</commentid>
    <comment_count>1</comment_count>
    <who name="Debarshi Ray">rishi.is</who>
    <bug_when>2015-03-28 17:34:58 -0700</bug_when>
    <thetext>I also had gtk+, atk, glib-networking, gvfs and glib built from their respection GNOME 3.16 branches. Reverting those back to their GNOME 3.14 versions seem to have stopped the crashes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912719</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-11-15 14:25:04 -0800</bug_when>
    <thetext>It is something which was detected by fuzzer in Chrome / Blink and fixed in this commit:

Link - https://src.chromium.org/viewvc/blink?view=revision&amp;revision=194543

https://github.com/WebKit/WebKit/blob/d5220e254917f82a86e5d6235224f82a03d25acb/Source/WebCore/accessibility/AccessibilityMenuList.cpp#L45

Adding

if(!renderer)
return false;

https://github.com/WebKit/WebKit/blob/d5220e254917f82a86e5d6235224f82a03d25acb/Source/WebCore/accessibility/AccessibilityMenuList.cpp#L89

Adding

if (!renderer)
return true;

It fixed crashes in - AccessibilityMenuList::isCollapsed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912851</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-11-16 07:29:05 -0800</bug_when>
    <thetext>&lt;rdar://problem/102419394&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912958</commentid>
    <comment_count>4</comment_count>
    <who name="Tyler Wilcock">tyler_w</who>
    <bug_when>2022-11-16 13:59:28 -0800</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #2)
&gt; It is something which was detected by fuzzer in Chrome / Blink and fixed in
&gt; this commit:
&gt; 
&gt; Link - https://src.chromium.org/viewvc/blink?view=revision&amp;revision=194543
&gt; 
&gt; https://github.com/WebKit/WebKit/blob/
&gt; d5220e254917f82a86e5d6235224f82a03d25acb/Source/WebCore/accessibility/
&gt; AccessibilityMenuList.cpp#L45
&gt; 
&gt; Adding
&gt; 
&gt; if(!renderer)
&gt; return false;
&gt; 
&gt; https://github.com/WebKit/WebKit/blob/
&gt; d5220e254917f82a86e5d6235224f82a03d25acb/Source/WebCore/accessibility/
&gt; AccessibilityMenuList.cpp#L89
&gt; 
&gt; Adding
&gt; 
&gt; if (!renderer)
&gt; return true;
&gt; 
&gt; It fixed crashes in - AccessibilityMenuList::isCollapsed
Both of your suggested changes sound good to me. Would you be interested in submitting a patch for them?

Also, were you able to reproduce this crash? Your comment implies so, but want to confirm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912959</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-11-16 14:01:21 -0800</bug_when>
    <thetext>(In reply to Tyler Wilcock from comment #4)
&gt; (In reply to Ahmad Saleem from comment #2)
&gt; &gt; It is something which was detected by fuzzer in Chrome / Blink and fixed in
&gt; &gt; this commit:
&gt; &gt; 
&gt; &gt; Link - https://src.chromium.org/viewvc/blink?view=revision&amp;revision=194543
&gt; &gt; 
&gt; &gt; https://github.com/WebKit/WebKit/blob/
&gt; &gt; d5220e254917f82a86e5d6235224f82a03d25acb/Source/WebCore/accessibility/
&gt; &gt; AccessibilityMenuList.cpp#L45
&gt; &gt; 
&gt; &gt; Adding
&gt; &gt; 
&gt; &gt; if(!renderer)
&gt; &gt; return false;
&gt; &gt; 
&gt; &gt; https://github.com/WebKit/WebKit/blob/
&gt; &gt; d5220e254917f82a86e5d6235224f82a03d25acb/Source/WebCore/accessibility/
&gt; &gt; AccessibilityMenuList.cpp#L89
&gt; &gt; 
&gt; &gt; Adding
&gt; &gt; 
&gt; &gt; if (!renderer)
&gt; &gt; return true;
&gt; &gt; 
&gt; &gt; It fixed crashes in - AccessibilityMenuList::isCollapsed
&gt; Both of your suggested changes sound good to me. Would you be interested in
&gt; submitting a patch for them?
&gt; 
&gt; Also, were you able to reproduce this crash? Your comment implies so, but
&gt; want to confirm.

Nah! I didn&apos;t checked or tried to reproduce, I was just looking through some bugs and came across fix for it. I just thought to post, I am happy to do PR.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913344</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-17 17:35:11 -0800</bug_when>
    <thetext>Committed 256814@main (c441a937ca2a): &lt;https://commits.webkit.org/256814@main&gt;

Reviewed commits have been landed. Closing PR #6569 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>