diff options
author | Leif Åstrand <leif@vaadin.com> | 2014-04-08 16:56:50 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-04-14 13:36:31 +0000 |
commit | e033fcda3537290a2db1b33ab5e7d5264639f1bb (patch) | |
tree | cc7d0e90b25919602d7dc89498fc9630ac3b94aa /server | |
parent | 168de1fefa0f09b07d438968575033e6d234cfb2 (diff) | |
download | vaadin-framework-e033fcda3537290a2db1b33ab5e7d5264639f1bb.tar.gz vaadin-framework-e033fcda3537290a2db1b33ab5e7d5264639f1bb.zip |
Always initialize WebBrowser for new sessions (#13571)
Change-Id: I3918498d63032f6b507b52634df5b41470363e15
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/server/BootstrapHandler.java | 4 | ||||
-rw-r--r-- | server/src/com/vaadin/server/VaadinService.java | 3 | ||||
-rw-r--r-- | server/src/com/vaadin/server/communication/UIInitHandler.java | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/server/src/com/vaadin/server/BootstrapHandler.java b/server/src/com/vaadin/server/BootstrapHandler.java index 0a4949ffa7..60b4459d2a 100644 --- a/server/src/com/vaadin/server/BootstrapHandler.java +++ b/server/src/com/vaadin/server/BootstrapHandler.java @@ -155,10 +155,6 @@ public abstract class BootstrapHandler extends SynchronizedRequestHandler { } try { - // Update WebBrowser here only to make WebBrowser information - // available in init for LegacyApplications - session.getBrowser().updateRequestDetails(request); - List<UIProvider> uiProviders = session.getUIProviders(); UIClassSelectionEvent classSelectionEvent = new UIClassSelectionEvent( diff --git a/server/src/com/vaadin/server/VaadinService.java b/server/src/com/vaadin/server/VaadinService.java index eda794438f..b26097a247 100644 --- a/server/src/com/vaadin/server/VaadinService.java +++ b/server/src/com/vaadin/server/VaadinService.java @@ -735,6 +735,9 @@ public abstract class VaadinService implements Serializable { session.storeInSession(this, request.getWrappedSession()); + // Initial WebBrowser data comes from the request + session.getBrowser().updateRequestDetails(request); + // Initial locale comes from the request Locale locale = request.getLocale(); session.setLocale(locale); diff --git a/server/src/com/vaadin/server/communication/UIInitHandler.java b/server/src/com/vaadin/server/communication/UIInitHandler.java index d4b0bc709f..9f299d9427 100644 --- a/server/src/com/vaadin/server/communication/UIInitHandler.java +++ b/server/src/com/vaadin/server/communication/UIInitHandler.java @@ -67,7 +67,7 @@ public abstract class UIInitHandler extends SynchronizedRequestHandler { try { assert UI.getCurrent() == null; - // Set browser information from the request + // Update browser information from the request session.getBrowser().updateRequestDetails(request); UI uI = getBrowserDetailsUI(request, session); |