RESOLVED DUPLICATE of bug 252944 16952
Reproducible assertion failure in FrameLoader::restoreScrollPositionAndViewState() (m_currentHistoryItem)
https://bugs.webkit.org/show_bug.cgi?id=16952
Summary Reproducible assertion failure in FrameLoader::restoreScrollPositionAndViewSt...
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.