<?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>51224</bug_id>
          
          <creation_ts>2010-12-16 17:59:59 -0800</creation_ts>
          <short_desc>ASSERT hit in HistoryItem::addChildItem</short_desc>
          <delta_ts>2016-08-03 13:45:26 -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>History</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=127092</see_also>
          <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="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
    
    <cc>bfulgham</cc>
    
    <cc>creis</cc>
    
    <cc>dev+webkit</cc>
    
    <cc>fishd</cc>
    
    <cc>grt</cc>
    
    <cc>mihaip</cc>
    
    <cc>qghc36</cc>
    
    <cc>svillar</cc>
    
    <cc>tonikitoo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>323551</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2010-12-16 17:59:59 -0800</bug_when>
    <thetext>I hit the following assertion on facebook:

void HistoryItem::addChildItem(PassRefPtr&lt;HistoryItem&gt; child)
{
    ASSERT(!childItemWithTarget(child-&gt;target())); // &lt; this one
    m_children.append(child);
#if PLATFORM(ANDROID)
    notifyHistoryItemChanged(this);
#endif
}

Stack trace:
#0	0x10192f18d in WebCore::HistoryItem::addChildItem at HistoryItem.cpp:419
#1	0x10192d387 in WebCore::HistoryController::createItemTree at HistoryController.cpp:543
#2	0x10192d49e in WebCore::HistoryController::pushState at HistoryController.cpp:659
#3	0x10192b98e in WebCore::History::stateObjectAdded at History.cpp:106
#4	0x101b80f99 in WebCore::JSHistory::pushState at JSHistoryCustom.cpp:183
#5	0x101b800e0 in WebCore::jsHistoryPrototypeFunctionPushState at JSHistory.cpp:182
#6	0x5f84352001b8 in ??
#7	0x1007e84a3 in JSC::JITCode::execute at JITCode.h:77
#8	0x1007e32a5 in JSC::Interpreter::executeCall at Interpreter.cpp:849
#9	0x10079c9b4 in JSC::call at CallData.cpp:38
#10	0x101ace843 in WebCore::JSMainThreadExecState::call at JSMainThreadExecState.h:48
#11	0x101b6db7c in WebCore::JSEventListener::handleEvent at JSEventListener.cpp:124
#12	0x10183fe3e in WebCore::EventTarget::fireEventListeners at EventTarget.cpp:342
#13	0x1018404a8 in WebCore::EventTarget::fireEventListeners at EventTarget.cpp:311
#14	0x101dbef35 in WebCore::Node::handleLocalEvents at Node.cpp:2511
#15	0x101dbe98c in WebCore::Node::dispatchGenericEvent at Node.cpp:2636
#16	0x101dbee65 in WebCore::Node::dispatchEvent at Node.cpp:2580
#17	0x10183f9b8 in WebCore::EventTarget::dispatchEvent at EventTarget.cpp:289
#18	0x10182c64c in WebCore::EventHandler::keyEvent at EventHandler.cpp:2378
#19	0x101839d55 in WebCore::EventHandler::keyEvent at EventHandlerMac.mm:148
#20	0x100f994db in -[WebHTMLView keyDown:] at WebHTMLView.mm:4217</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323552</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2010-12-16 18:00:39 -0800</bug_when>
    <thetext>I&apos;ve caught in my debugger and will keep it alive until tomorrow morning.  Please ping me (rniwa) on IRC if you&apos;re interested in proving it via gdb.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323846</commentid>
    <comment_count>2</comment_count>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2010-12-17 10:15:35 -0800</bug_when>
    <thetext>This appears to happen when l view a friend&apos;s profile and then click on one of the mutual friends from the sidebar. IIRC each profile page has a hidden iframe (used for uploads), those are added/removed during profile -&gt; profile navigations (which also involve pushState).

Adding Charlie since I recall this working before, perhaps http://trac.webkit.org/changeset/72566 or http://trac.webkit.org/changeset/71437 triggered this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324491</commentid>
    <comment_count>3</comment_count>
    <who name="Charles Reis">creis</who>
    <bug_when>2010-12-20 11:58:59 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; This appears to happen when l view a friend&apos;s profile and then click on one of the mutual friends from the sidebar. IIRC each profile page has a hidden iframe (used for uploads), those are added/removed during profile -&gt; profile navigations (which also involve pushState).
&gt; 
&gt; Adding Charlie since I recall this working before, perhaps http://trac.webkit.org/changeset/72566 or http://trac.webkit.org/changeset/71437 triggered this?

I don&apos;t think those CLs would have affected the child&apos;s targets, but I&apos;m willing to check.  However, I&apos;m not able to reproduce on Facebook using those steps.  I&apos;ve tried in Chrome 9.0.597.19 (beta) and a recent build of WebKit.

Do you have a simpler repro yet that I could try?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>515350</commentid>
    <comment_count>4</comment_count>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2011-12-05 13:29:20 -0800</bug_when>
    <thetext>*** Bug 73752 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>535943</commentid>
    <comment_count>5</comment_count>
    <who name="Greg Thompson">grt</who>
    <bug_when>2012-01-13 13:22:02 -0800</bug_when>
    <thetext>I have a reliable repro with a debug build of Chrome Frame 16.0.912.75 (currently on the stable channel).  I do little more than sign into facebook and click on a few things.  What does it mean for there to be two child items with the same target?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>537137</commentid>
    <comment_count>6</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-01-17 09:00:27 -0800</bug_when>
    <thetext>We&apos;re hitting this also in the WebKitGtk+ port quite often browsing fbook.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>574627</commentid>
    <comment_count>7</comment_count>
    <who name="Naveen Bobbili">qghc36</who>
    <bug_when>2012-03-08 22:08:11 -0800</bug_when>
    <thetext>I observed the same crash while browsing facebook today.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>574630</commentid>
    <comment_count>8</comment_count>
    <who name="Naveen Bobbili">qghc36</who>
    <bug_when>2012-03-08 22:09:47 -0800</bug_when>
    <thetext>Additional Info:
Observed on chrome 16.0.912.77</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217132</commentid>
    <comment_count>9</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2016-08-03 13:41:58 -0700</bug_when>
    <thetext>I do not see this issue with any Safari variant, or MiniBrowser.

Is anyone still encountering this under EFL or another port?

I&apos;m closing this bug. Please reopen if you have a reproducible test case.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>