Soften push/replaceState frequency restrictions.
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Mar 2016 20:37:49 +0000 (20:37 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Mar 2016 20:37:49 +0000 (20:37 +0000)
commitdbf644c01410ffe32c5944a4538e3f12173502c5
tree4b3454e15c6e3d9c2597c3a260e986ceb7904244
parent14bf05a2715f376e6727c05206d6a9f10ad273df
Soften push/replaceState frequency restrictions.
<rdar://problem/25228439> and https://bugs.webkit.org/show_bug.cgi?id=155901
.:

Rubber-stamped by Timothy Hatcher.

* ManualTests/state-objects-time-limit.html: Added.

Source/WebCore:

Rubber-stamped by Timothy Hatcher.

Covered by existing LayoutTests and a new Manual Test.

* page/History.cpp:
(WebCore::History::stateObjectAdded): Allow 100 state object operations every 30 seconds.
* page/History.h:

LayoutTests:

Rubber-stamped by Timothy Hatcher.

* fast/loader/stateobjects/pushstate-frequency-with-user-gesture-expected.txt: Removed.
* fast/loader/stateobjects/pushstate-frequency-with-user-gesture.html: Removed.
* fast/loader/stateobjects/replacestate-frequency-with-user-gesture-expected.txt: Removed.
* fast/loader/stateobjects/replacestate-frequency-with-user-gesture.html: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198687 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
LayoutTests/ChangeLog
LayoutTests/fast/loader/stateobjects/pushstate-frequency-with-user-gesture-expected.txt [deleted file]
LayoutTests/fast/loader/stateobjects/pushstate-frequency-with-user-gesture.html [deleted file]
LayoutTests/fast/loader/stateobjects/replacestate-frequency-with-user-gesture-expected.txt [deleted file]
LayoutTests/fast/loader/stateobjects/replacestate-frequency-with-user-gesture.html [deleted file]
ManualTests/state-objects-time-limit.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/History.cpp
Source/WebCore/page/History.h