2011-04-04 Yong Li <yoli@rim.com>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Apr 2011 17:05:55 +0000 (17:05 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Apr 2011 17:05:55 +0000 (17:05 +0000)
commit07508ec89bc510397ce14bec8976d17f8b794e38
tree3b696f367d92298a5d26481f3faeb239ef1d09f9
parent5d126b8c5de6093c9764e74799be0b493345b326
2011-04-04  Yong Li  <yoli@rim.com>

        Reviewed by Antonio Gomes.

        https://bugs.webkit.org/show_bug.cgi?id=55969
        Add a test that verifies history scroll position is restored
        when WebKit goes forward from an unreachable URL error page.
        (Error page handling is only supported by Qt DRT.)

        * platform/qt/fast/history/back-to-unreachable-url-then-forward-expected.txt: Added.
        * platform/qt/fast/history/back-to-unreachable-url-then-forward.html: Added.
        * platform/qt/fast/history/resources/check-scroll-position.html: Added.
2011-04-04  Yong Li  <yoli@rim.com>

        Reviewed by Antonio Gomes.

        https://bugs.webkit.org/show_bug.cgi?id=55969
        Fix the issue that document state is not saved when
        going backward and ending up with error page.

        Test: platform/qt/fast/history/back-to-unreachable-url-then-forward.html

        (For manual test, load a non-existent html first, then load
        fast/history/resources/check-scroll-position.html, then go
        back and go forward. If it doesn't show "SUCCESS" at the bottom
        of the page, your browser has failed the test)

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::load):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@82843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/qt/fast/history/back-to-unreachable-url-then-forward-expected.txt [new file with mode: 0644]
LayoutTests/platform/qt/fast/history/back-to-unreachable-url-then-forward.html [new file with mode: 0644]
LayoutTests/platform/qt/fast/history/resources/check-scroll-position.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/loader/FrameLoader.cpp