2008-07-01 Cameron Zwarich <cwzwarich@uwaterloo.ca>
authorcwzwarich@webkit.org <cwzwarich@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Jul 2008 19:05:23 +0000 (19:05 +0000)
committercwzwarich@webkit.org <cwzwarich@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Jul 2008 19:05:23 +0000 (19:05 +0000)
commit6fc82b3ba53b297ba1add967d0f747d7a987ca5f
treecddbf7cfea36bc8fa3cd02c41f947445afec9eb9
parent09733b8666d6faa70b586bd075e3d9259963fd24
2008-07-01  Cameron Zwarich  <cwzwarich@uwaterloo.ca>

        Reviewed by Brady Eidson.

        Bug 19822: REGRESSION (r30243): setting location.hash to "#" causes a reload
        <https://bugs.webkit.org/show_bug.cgi?id=19822>

        Change JSLocation::setHash() to not schedule navigation in the case
        where the old fragment is the null String and the new fragment is an
        empty String.

        WebCore:

        * bindings/js/JSLocationCustom.cpp:
        (WebCore::JSLocation::setHash):

        LayoutTests:

        * http/tests/loading/location-hash-reload-cycle-expected.txt: Added.
        * http/tests/loading/location-hash-reload-cycle.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@34927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/loading/location-hash-reload-cycle-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/loading/location-hash-reload-cycle.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/bindings/js/JSLocationCustom.cpp