-
commit-queue@webkit.org authored
Reviewed by Mihai Parparita. Canceled frame loads can corrupt back forward list https://bugs.webkit.org/show_bug.cgi?id=50254 http/tests/navigation/forward-and-cancel.html aborts a slowly loading subframe in a frame tree and ensures the history items are updated properly. * LayoutTests/http/tests/navigation/forward-and-cancel-expected.txt: Added. * LayoutTests/http/tests/navigation/forward-and-cancel.html: Added. * LayoutTests/http/tests/navigation/resources/forward-and-cancel-frames.html: Added. * LayoutTests/http/tests/navigation/resources/forward-and-cancel-frames-container.html: Added. 2011-01-08 Charlie Reis <creis@chromium.org> Reviewed by Mihai Parparita. Canceled frame loads can corrupt back forward list https://bugs.webkit.org/show_bug.cgi?id=50254 Avoids changing m_currentItem until the navigation commits. Also resets top-level history items if a subframe navigation is canceled. * WebCore/loader/FrameLoader.cpp: (WebCore::FrameLoader::checkLoadCompleteForThisFrame): * WebCore/loader/HistoryController.cpp: * WebCore/loader/HistoryController.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
21a48d82