]> source.dussan.org Git - vaadin-framework.git/commit
Fix regression that broke PreserveOnRefresh functionality with Navigator (#11615)
authorTatu Lund <tatu@vaadin.com>
Fri, 7 Jun 2019 10:14:38 +0000 (13:14 +0300)
committerZhe Sun <31067185+ZheSun88@users.noreply.github.com>
Fri, 7 Jun 2019 10:14:38 +0000 (13:14 +0300)
commit7a453dce177d849305c549296986eb21e171bae0
treefdff2d68f8bbbf9f34b1cbf9d6184de133154d82
parenta6a21157c426aed6a0211bc0a3f6a5056f1e455e
Fix regression that broke PreserveOnRefresh functionality with Navigator (#11615)

* Fix regression that broke PreserveOnRefresh functionality with Navigator

Fixes https://github.com/vaadin/framework/issues/11614

Old patch https://github.com/vaadin/framework/issues/11416 calls navigateTo allways when Navigator is present, which is wrong, since it is needed only when navigation state has truly changed.

* Add test to the fix
server/src/main/java/com/vaadin/ui/UI.java
uitest/src/main/java/com/vaadin/tests/components/ui/RefreshUI.java [new file with mode: 0644]
uitest/src/test/java/com/vaadin/tests/components/ui/RefreshUITest.java [new file with mode: 0644]