2011-07-01 Mihai Parparita <mihaip@chromium.org>
authormihaip@chromium.org <mihaip@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Jul 2011 22:02:44 +0000 (22:02 +0000)
committermihaip@chromium.org <mihaip@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Jul 2011 22:02:44 +0000 (22:02 +0000)
commit1b4f39fc8fb4ffa021c5d8df3dab67caba5945ad
treef8c123b84217232055d5f22903c16ba51838e716
parenta0286d7b882ec809aa600b22f91437f67bd77fe4
2011-07-01  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Darin Fisher.

        location.replace with a hash change does not update the history entry
        https://bugs.webkit.org/show_bug.cgi?id=63777

        * fast/history/location-replace-hash-expected.txt: Added.
        * fast/history/location-replace-hash.html: Added.
        * fast/history/resources/location-replace-hash-1.html: Added.
        * fast/history/resources/location-replace-hash-2.html: Added.
2011-07-01  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Darin Fisher.

        location.replace with a hash change does not update the history entry
        https://bugs.webkit.org/show_bug.cgi?id=63777

        location.replace('#foo') would not update the HistoryItem with the
        new URL, thus navigating back to the page would use the previous
        URL, even though it had been replaced. Make
        HistoryController::updateForSameDocumentNavigation mirror
        HistoryController::replaceState.

        Test: fast/history/location-replace-hash.html

        * loader/HistoryController.cpp:
        (WebCore::HistoryController::updateForSameDocumentNavigation):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@90281 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/history/location-replace-hash-expected.txt [new file with mode: 0644]
LayoutTests/fast/history/location-replace-hash.html [new file with mode: 0644]
LayoutTests/fast/history/resources/location-replace-hash-1.html [new file with mode: 0644]
LayoutTests/fast/history/resources/location-replace-hash-2.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/loader/HistoryController.cpp