2010-11-22 Charlie Reis <creis@chromium.org>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Nov 2010 23:01:28 +0000 (23:01 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Nov 2010 23:01:28 +0000 (23:01 +0000)
commit62267ed9f0d80a9a163a6401c410da2d6202b413
tree5e71a27a241ef3f6f42b74385bbcf24a402f9b67
parent543cb25bf677533774746948448742aa57cdd955
2010-11-22  Charlie Reis  <creis@chromium.org>

        Reviewed by Darin Fisher.

        Update correct content state during back/forward navigations
        https://bugs.webkit.org/show_bug.cgi?id=48809

        Test that we update content state when leaving a form in a subframe.

        * fast/history/saves-state-after-frame-nav.html:
        * fast/history/saves-state-after-frame-nav-expected.txt:
        * fast/history/resources/subframe-with-form.html:
2010-11-22  Charlie Reis  <creis@chromium.org>

        Reviewed by Darin Fisher.

        Update correct content state during back/forward navigations
        https://bugs.webkit.org/show_bug.cgi?id=48809

        Ensures that history's previousItem is non-null when clients try to
        update content state (e.g., Chromium's UpdateSessionHistory).  We now
        track load completions with a boolean field rather than by clearing
        previousItem.

        Test: fast/history/saves-state-after-frame-nav.html

        * loader/HistoryController.cpp:
        * loader/HistoryController.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@72566 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/history/resources/subframe-with-form.html [new file with mode: 0644]
LayoutTests/fast/history/saves-state-after-frame-nav-expected.txt [new file with mode: 0644]
LayoutTests/fast/history/saves-state-after-frame-nav.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/loader/HistoryController.cpp
WebCore/loader/HistoryController.h