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