summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-04-23 16:25:31 +0300
committerArtur Signell <artur@vaadin.com>2013-04-23 16:25:35 +0300
commit5ea05ab330a3a68f6bd7042e67b8c3bb60c98721 (patch)
tree84feff28d85489b0fc626cee8ded9d999d5d747e
parentc2c1199cc3d52bf610eb64ed3b85ffe8a005aa4d (diff)
parent9c6d4b4add253b96feb2d8bc41354c44bb8834d6 (diff)
downloadvaadin-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.java16
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;