[Qt] Add support for HTML5 state object history API in FrameLoaderClientQt
authorpierre.rossi@gmail.com <pierre.rossi@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Aug 2012 13:26:27 +0000 (13:26 +0000)
committerpierre.rossi@gmail.com <pierre.rossi@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Aug 2012 13:26:27 +0000 (13:26 +0000)
commit73bf7921dca8f0a5f24f1b550c397a550d98a7f0
tree3bc03dfcac58c4da68f4ca6f943b01c559ca42d5
parenta0724fec79927c962ac307d5d794e2705c9af551
[Qt] Add support for HTML5 state object history API in FrameLoaderClientQt
https://bugs.webkit.org/show_bug.cgi?id=93648

Reviewed by Kenneth Rohde Christiansen.

Add support for push/replace/pop by implementing dispatchDidNavigateWithinPage.

* WebCoreSupport/FrameLoaderClientQt.cpp:
(WebCore::FrameLoaderClientQt::dispatchDidNavigateWithinPage):
(WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
(WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
(WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
* WebCoreSupport/FrameLoaderClientQt.h:
(FrameLoaderClientQt):
* tests/qwebframe/tst_qwebframe.cpp:
(tst_QWebFrame):
(tst_QWebFrame::setUrlUsingStateObject): Added. Tests that the urlChanged signal is fired.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@125352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/qt/ChangeLog
Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h
Source/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp