<?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>14895</bug_id>
          
          <creation_ts>2007-08-07 10:56:24 -0700</creation_ts>
          <short_desc>[Crash] FrameTree::uniqueChildName generates non-unique names</short_desc>
          <delta_ts>2007-08-07 11:31:09 -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>Frames</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>7899</dup_id>
          
          <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="Brett Wilson (Google)">brettw</reporter>
          <assigned_to name="Brett Wilson (Google)">brettw</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2899</commentid>
    <comment_count>0</comment_count>
    <who name="Brett Wilson (Google)">brettw</who>
    <bug_when>2007-08-07 10:56:24 -0700</bug_when>
    <thetext>I am seeing a hard-to-reproduce crash on a number of sites including
  http://www.jrj.com.cn/
The crash is in EventHandler::passWheelEventToWidget (and presumably other input events) when you use the scroll wheel over certain iframes (seems to depend on timing) because the widget for the RenderWidget is NULL

The widget is NULL because the iframe is never initialized properly. The iframe is never initialized properly because the redirect timer was canceled by another iframe that got the same &quot;unique&quot; internal frame name.

FrameTree::uniqueChildName uses childCount() to generate a &quot;unique&quot; name for a child frame. However, this value can repeat if frames are removed from the parent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2900</commentid>
    <comment_count>1</comment_count>
    <who name="Brett Wilson (Google)">brettw</who>
    <bug_when>2007-08-07 10:59:46 -0700</bug_when>
    <thetext>I have a patch for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2896</commentid>
    <comment_count>2</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2007-08-07 11:21:04 -0700</bug_when>
    <thetext>This is a dup, but I can&apos;t find the original right now. You might want to do some searching -- I remember past patches for this issue causing significant regressions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2893</commentid>
    <comment_count>3</comment_count>
    <who name="Brett Wilson (Google)">brettw</who>
    <bug_when>2007-08-07 11:31:09 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 7899 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>