<?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>12005</bug_id>
          
          <creation_ts>2006-12-27 14:20:42 -0800</creation_ts>
          <short_desc>REGRESSION(r17256-17272): Multiple history entries created</short_desc>
          <delta_ts>2007-04-09 17:22:50 -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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://cbs4boston.com/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Carson">dacarson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
    
    <cc>mjs</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39375</commentid>
    <comment_count>0</comment_count>
    <who name="David Carson">dacarson</who>
    <bug_when>2006-12-27 14:20:42 -0800</bug_when>
    <thetext>When I load CBS4Boston web site, three history entries are created. The history items are the original page, and two entitled &apos;Click here to find out more!&apos;
Loading the same site in shipping Safari and FF, only one history entry is created.

Marked it as regression as this is not a problem in shipping safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34590</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-01-16 19:19:22 -0800</bug_when>
    <thetext>&lt;rdar://problem/4928650&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34594</commentid>
    <comment_count>2</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2007-01-16 19:30:39 -0800</bug_when>
    <thetext>Theres been alot of loader and history work done lately...  any chance you can regress this using the nightlys?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34597</commentid>
    <comment_count>3</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2007-01-16 19:35:39 -0800</bug_when>
    <thetext>This is still happening with r18892</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34548</commentid>
    <comment_count>4</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2007-01-16 20:30:12 -0800</bug_when>
    <thetext>Regress using the nightlys, meaning going back through the nightlys and seeing where the problem first appears</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32690</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-01-24 20:22:21 -0800</bug_when>
    <thetext>The additional history entries come from the titles advertisements that are displayed in iframes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32684</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-01-24 20:33:26 -0800</bug_when>
    <thetext>This regression would appear to be introduced between r17256 and r17282, but it&apos;s hard to narrow it down further as the URL in question crashes the nightly builds in that range.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32681</commentid>
    <comment_count>7</comment_count>
      <attachid>12659</attachid>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-01-24 21:20:38 -0800</bug_when>
    <thetext>Created attachment 12659
Reduction

The ad-related JS on the page creates an iframe via document.write, then straight away sets its src property.  It appears that setting the src property to the same value is triggering a fresh load which creates a history entry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25309</commentid>
    <comment_count>8</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2007-02-07 05:40:53 -0800</bug_when>
    <thetext>*** Bug 12650 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25310</commentid>
    <comment_count>9</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2007-02-07 05:42:27 -0800</bug_when>
    <thetext>From duplicate: &lt;rdar://problem/4921797&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19510</commentid>
    <comment_count>10</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-03-11 10:35:51 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; The ad-related JS on the page creates an iframe via document.write, then
&gt; straight away sets its src property.  It appears that setting the src property
&gt; to the same value is triggering a fresh load which creates a history entry.

Setting the src property is always supposed to cause a reload. But that was buggy in older version of WebKit. It didn&apos;t trigger a load if the URL was the same. It&apos;s possible that we need to trigger a load yet somehow know not to put things in the back/forward list in this case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15772</commentid>
    <comment_count>11</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2007-04-03 17:56:37 -0700</bug_when>
    <thetext>Using the reduction, I regressed this further with the nightlies to the 17256-17272 range</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15774</commentid>
    <comment_count>12</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2007-04-03 18:49:52 -0700</bug_when>
    <thetext>This broke in http://trac.webkit.org/projects/webkit/changeset/17267
Geoff&apos;s seemingly simplistic change that was attempting to clean up loading code, but there&apos;s something subtle it tweaked re: user gesture versus non-user gesture here that I need to figure out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15261</commentid>
    <comment_count>13</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2007-04-09 17:22:50 -0700</bug_when>
    <thetext>The reduction Mark posted way key - it was well understood and a fix was committed in r20813!  Yay!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>12659</attachid>
            <date>2007-01-24 21:20:38 -0800</date>
            <delta_ts>2007-01-24 21:20:38 -0800</delta_ts>
            <desc>Reduction</desc>
            <filename>webkit-bug-12005-reduction.html</filename>
            <type>text/html</type>
            <size>298</size>
            <attacher name="Mark Rowe (bdash)">mrowe</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgogICAgPHRpdGxlPnVudGl0bGVkPC90aXRsZT4KPC9oZWFkPgo8Ym9keT4K
ICAgIDxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0Ij4KICAgICAgICBkb2N1bWVudC53cml0
ZSgnPGlmcmFtZSBpZD0iZnJhbWUiIHNyYz0iaHR0cDovL3JlZGRpdC5jb20vIiB3aWR0aD0iNTAw
IiBoZWlnaHQ9IjUwMCI+PC9pZnJhbWU+Jyk7CiAgICAgICAgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5
SWQoJ2ZyYW1lJykuc3JjID0gImh0dHA6Ly9yZWRkaXQuY29tLyI7CiAgICA8L3NjcmlwdD4KPC9i
b2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>