summaryrefslogtreecommitdiffstats
path: root/WebContent
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-11-05 11:00:47 +0000
committerVaadin Code Review <review@vaadin.com>2012-11-05 11:00:55 +0000
commit57fd06617af154b7e01f5ec79fad86e662908bdf (patch)
tree5441006decbae35b613c172a78edc9d89ff5d044 /WebContent
parent5cd3f64548037908979f740626022c88504fd701 (diff)
downloadvaadin-framework-57fd06617af154b7e01f5ec79fad86e662908bdf.tar.gz
vaadin-framework-57fd06617af154b7e01f5ec79fad86e662908bdf.zip
Revert "Don't require browserDetailsUrl when embedding (#10122)"
The change caused the wrong URL to be included in some browser details requests. This reverts commit 38c2ad6ff4895643371dfd00fb1d8667f6fc3909
Diffstat (limited to 'WebContent')
-rw-r--r--WebContent/VAADIN/vaadinBootstrap.js5
-rw-r--r--WebContent/statictestfiles/simpleEmbed.html55
2 files changed, 1 insertions, 59 deletions
diff --git a/WebContent/VAADIN/vaadinBootstrap.js b/WebContent/VAADIN/vaadinBootstrap.js
index 953fa44180..8c6e80a14f 100644
--- a/WebContent/VAADIN/vaadinBootstrap.js
+++ b/WebContent/VAADIN/vaadinBootstrap.js
@@ -78,15 +78,12 @@
};
var fetchRootConfig = function() {
+ log('Fetching root config');
var url = getConfig('browserDetailsUrl');
if (!url) {
- url = getConfig('serviceUrl');
- }
- if (!url) {
// No special url defined, use the same URL that loaded this page (without the fragment)
url = window.location.href.replace(/#.*/,'');
}
- log('Fetching root config from ' + url);
url += ((/\?/).test(url) ? "&" : "?") + "browserDetails=1";
var rootId = getConfig("rootId");
if (rootId !== undefined) {
diff --git a/WebContent/statictestfiles/simpleEmbed.html b/WebContent/statictestfiles/simpleEmbed.html
deleted file mode 100644
index 93dd6e7dfa..0000000000
--- a/WebContent/statictestfiles/simpleEmbed.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta http-equiv="X-UA-Compatible" content="chrome=1" />
-<title>Simple embed</title>
-<style type="text/css">
-html,body {
- height: 100%;
- margin: 0;
-}
-</style>
-<link rel="shortcut icon" type="image/vnd.microsoft.icon"
- href="/VAADIN/themes/reindeer/favicon.ico" />
-<link rel="icon" type="image/vnd.microsoft.icon"
- href="/VAADIN/themes/reindeer/favicon.ico" />
-
-<script type="text/javascript" src="/VAADIN/vaadinBootstrap.js"></script>
-</head>
-<body scroll="auto" class=" v-generated-body">
- <span>MarginsInLabels</span>
- <div style="width: 300px; height: 300px; border: 1px solid red;"
- id="embedded" class=" v-app v-app-VaadinServletSession">
- <div class=" v-app-loading"></div>
- <noscript>You have to enable javascript in your browser to
- use an application built with Vaadin.</noscript>
- </div>
- <iframe tabindex="-1" id="__gwt_historyFrame"
- style="position: absolute; width: 0; height: 0; border: 0; overflow: hidden"
- src="javascript:false"></iframe>
-
- <script type="text/javascript">//<![CDATA[
-if (!window.vaadin) alert("Failed to load the bootstrap javascript: ../VAADIN/vaadinBootstrap.js");
-vaadin.initApplication("embedded",{
- "heartbeatInterval": 300,
- "versionInfo": {"vaadinVersion": "9.9.9.INTERNAL-DEBUG-BUILD"},
- "vaadinDir": "../VAADIN/",
- "serviceUrl": "../embed2",
- "authErrMsg": {
- "message": "Take note of any unsaved data, and <u>click here<\/u> to continue.",
- "caption": "Authentication problem"
- },
- "widgetset": "com.vaadin.DefaultWidgetSet",
- "theme": "reindeer",
- "debug": true,
- "comErrMsg": {
- "message": "Take note of any unsaved data, and <u>click here<\/u> to continue.",
- "caption": "Communication problem"
- },
- "standalone": true
-});
-//]]></script>
-
-</body>
-</html> \ No newline at end of file