<?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>16952</bug_id>
          
          <creation_ts>2008-01-20 21:23:44 -0800</creation_ts>
          <short_desc>Reproducible assertion failure in FrameLoader::restoreScrollPositionAndViewState() (m_currentHistoryItem)</short_desc>
          <delta_ts>2023-10-03 10:50:20 -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>Page Loading</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>252944</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=252944</see_also>
          <bug_file_loc>http://www.leviahon.co.il/article.php?id=637</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>tevaum</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67820</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-01-20 21:23:44 -0800</bug_when>
    <thetext>See also bug 13684 &lt;rdar://problem/5203036&gt;.

ASSERTION FAILED: m_currentHistoryItem
(WebCore/loader/FrameLoader.cpp:3916 void WebCore::FrameLoader::restoreScrollPositionAndViewState())

Steps to reproduce:
1) Go to the URL.
2) Click the black&amp;white photo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67821</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-01-20 21:34:34 -0800</bug_when>
    <thetext>Reduction: enter the following in the address bar:
javascript: window.open().location.reload()

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67822</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-01-20 21:44:13 -0800</bug_when>
    <thetext>What&apos;s the impact of this in a release build?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67823</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-01-20 21:45:48 -0800</bug_when>
    <thetext>Just looked at the code:

    ASSERT(m_currentHistoryItem);
    
    // FIXME: As the ASSERT attests, it seems we should always have a currentItem here.
    // One counterexample is &lt;rdar://problem/4917290&gt;
    // For now, to cover this issue in release builds, there is no technical harm to returning
    // early and from a user standpoint - as in the above radar - the previous page load failed 
    // so there *is* no scroll or view state to restore!
    if (!m_currentHistoryItem)
        return;


In a release build this would seem to be harmless.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67824</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-01-20 21:47:23 -0800</bug_when>
    <thetext>&lt;rdar://problem/5697153&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1982144</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-03 10:50:20 -0700</bug_when>
    <thetext>

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

    </bug>

</bugzilla>