diff options
author | Artur Signell <artur@vaadin.com> | 2013-04-23 16:25:31 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-04-23 16:25:35 +0300 |
commit | 5ea05ab330a3a68f6bd7042e67b8c3bb60c98721 (patch) | |
tree | 84feff28d85489b0fc626cee8ded9d999d5d747e | |
parent | c2c1199cc3d52bf610eb64ed3b85ffe8a005aa4d (diff) | |
parent | 9c6d4b4add253b96feb2d8bc41354c44bb8834d6 (diff) | |
download | vaadin-framework-5ea05ab330a3a68f6bd7042e67b8c3bb60c98721.tar.gz vaadin-framework-5ea05ab330a3a68f6bd7042e67b8c3bb60c98721.zip |
Merged changes from origin/7.0
9c6d4b4 Fix fragment handling regression caused by #10769 (#11686)
Change-Id: I5050ec03b1f97c1da7aa6bbbc3718635fe7f6102
-rw-r--r-- | client/src/com/vaadin/client/ui/VUI.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/client/src/com/vaadin/client/ui/VUI.java b/client/src/com/vaadin/client/ui/VUI.java index 9a73aa5f8f..4817bf9304 100644 --- a/client/src/com/vaadin/client/ui/VUI.java +++ b/client/src/com/vaadin/client/ui/VUI.java @@ -29,6 +29,7 @@ import com.google.gwt.event.logical.shared.ResizeHandler; import com.google.gwt.event.logical.shared.ValueChangeEvent; import com.google.gwt.event.logical.shared.ValueChangeHandler; import com.google.gwt.event.shared.HandlerRegistration; +import com.google.gwt.http.client.URL; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Event; import com.google.gwt.user.client.History; @@ -133,10 +134,17 @@ public class VUI extends SimplePanel implements ResizeHandler, // Send the location to the server if the fragment has changed // and flush active connectors in UI. if (!newFragment.equals(currentFragment) && connection != null) { - - // Ensure the fragment is properly encoded in all browsers - // (#10769) - String location = Window.Location.createUrlBuilder() + /* + * Ensure the fragment is properly encoded in all browsers + * (#10769) + * + * createUrlBuilder does not properly pass an empty fragment to + * UrlBuilder on Webkit browsers so do it manually (#11686) + */ + String location = Window.Location + .createUrlBuilder() + .setHash( + URL.decodeQueryString(Window.Location.getHash())) .buildString(); currentFragment = newFragment; |