<rdar://problem/9251515> and https://bugs.webkit.org/show_bug.cgi?id=58072
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Apr 2011 01:27:57 +0000 (01:27 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Apr 2011 01:27:57 +0000 (01:27 +0000)
commit36724c7f3c6436d198fd376dca07924be957f7d5
treeb7ca1abe21edd8d1dd2c1302ba58c0c40f657add
parentb058ad5ace5b8f64bb18add9fc029df33e9c84ff
<rdar://problem/9251515> and https://bugs.webkit.org/show_bug.cgi?id=58072
URLs accessed as a result of pushState/replaceState should count as "visited" and be in the global history

Reviewed by Maciej Stachowiak.

Source/WebCore:

Test: fast/loader/stateobjects/state-url-sets-links-visited.html

* loader/HistoryController.cpp:
(WebCore::HistoryController::pushState): Notify the history client and add the visited link.
(WebCore::HistoryController::replaceState): Ditto.

LayoutTests:

* fast/loader/stateobjects/state-url-sets-links-visited-expected.txt: Added.
* fast/loader/stateobjects/state-url-sets-links-visited.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83547 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/loader/stateobjects/state-url-sets-links-visited-expected.txt [new file with mode: 0644]
LayoutTests/fast/loader/stateobjects/state-url-sets-links-visited.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/loader/HistoryController.cpp