Bug 16952

Summary: Reproducible assertion failure in FrameLoader::restoreScrollPositionAndViewState() (m_currentHistoryItem)
Product: WebKit Reporter: mitz
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ahmad.saleem792, tevaum
Priority: P2 Keywords: HasReduction, InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
URL: http://www.leviahon.co.il/article.php?id=637
See Also: https://bugs.webkit.org/show_bug.cgi?id=252944

mitz
Reported 2008-01-20 21:23:44 PST
See also bug 13684 <rdar://problem/5203036>. 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&white photo.
Attachments
mitz
Comment 1 2008-01-20 21:34:34 PST
Reduction: enter the following in the address bar: javascript: window.open().location.reload()
Mark Rowe (bdash)
Comment 2 2008-01-20 21:44:13 PST
What's the impact of this in a release build?
Mark Rowe (bdash)
Comment 3 2008-01-20 21:45:48 PST
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 <rdar://problem/4917290> // 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.
Mark Rowe (bdash)
Comment 4 2008-01-20 21:47:23 PST
Ahmad Saleem
Comment 5 2023-10-03 10:50:20 PDT
*** This bug has been marked as a duplicate of bug 252944 ***
Note You need to log in before you can comment on or make changes to this bug.