]> source.dussan.org Git - vaadin-framework.git/commit
Support for HTML5 push/replaceState for proper deep linking features (#8116)
authorMatti Tahvonen <matti@vaadin.com>
Fri, 13 Jan 2017 15:07:36 +0000 (17:07 +0200)
committerPekka Hyvönen <pekka@vaadin.com>
Fri, 13 Jan 2017 15:07:36 +0000 (17:07 +0200)
commit62c44dd77e47c908361a87332182f2e2465972c0
tree2485171f3a1326d0f7bf0a067569e535dd18d626
parentfe536b3efc4ed3d6637fead851c01375af91f762
Support for HTML5 push/replaceState for proper deep linking features (#8116)

* Added support for HTML5 push/replaceState for proper deep linkin features

* Automated test script now works at least on chrome

* Uses html5 push/popstate to implement uri fragment feature

* fire legacy fragment change events also via popstate events rpc calls
* send new fragments via pushstate mechanism

* formatting

* Formatting and adding test and workaround for IE bug

* Formatting and depracated UriFragmentListener

* Aligned naming in the new API

* Ignored IE due to web driver bug

Tested a workaround with javascript based window.location.href fetch,
but that don’t seem to work stable enough.
14 files changed:
client/src/main/java/com/vaadin/client/ui/VUI.java
client/src/main/java/com/vaadin/client/ui/ui/UIConnector.java
client/src/main/resources/com/vaadin/DefaultWidgetSet.gwt.xml
server/src/main/java/com/vaadin/server/Page.java
server/src/main/java/com/vaadin/ui/UI.java
shared/src/main/java/com/vaadin/shared/ui/ui/UIConstants.java
shared/src/main/java/com/vaadin/shared/ui/ui/UIServerRpc.java
uitest/src/main/java/com/vaadin/tests/components/ui/PushStateAndReplaceState.java [new file with mode: 0644]
uitest/src/main/java/com/vaadin/tests/components/ui/UriFragment.java
uitest/src/test/java/com/vaadin/tests/components/ui/PushStateAndReplaceStateTest.java [new file with mode: 0644]
uitest/src/test/java/com/vaadin/tests/components/ui/UriFragmentTest.java
uitest/src/test/java/com/vaadin/tests/navigator/NavigatorViewBlocksBackButtonActionTest.java
uitest/src/test/java/com/vaadin/tests/urifragments/FragmentHandlingAndAsynchUIUpdateTest.java
uitest/src/test/java/com/vaadin/tests/urifragments/SettingNullFragmentTest.java