summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-05-23 22:27:16 +0300
committerArtur Signell <artur@vaadin.com>2013-05-23 22:29:58 +0300
commit6de01ac07153002f3752a0571a0060c21ed37230 (patch)
treee9d9442d2a2f3c8ce056d9d0efa47bbb1d6e4107 /client
parent8a42394c6341f26066f41d3560f2419658a67a62 (diff)
downloadvaadin-framework-6de01ac07153002f3752a0571a0060c21ed37230.tar.gz
vaadin-framework-6de01ac07153002f3752a0571a0060c21ed37230.zip
Fix text / javascript mismatch issue in Chrome (#11275)
Change-Id: I7516be18401640ded3eb6174b5375bb452a2ba00
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ResourceLoader.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ResourceLoader.java b/client/src/com/vaadin/client/ResourceLoader.java
index 7fc8b4f9f3..3d8eb739b1 100644
--- a/client/src/com/vaadin/client/ResourceLoader.java
+++ b/client/src/com/vaadin/client/ResourceLoader.java
@@ -323,7 +323,11 @@ public class ResourceLoader {
} else {
ObjectElement element = Document.get().createObjectElement();
element.setData(url);
- element.setType("text/plain");
+ if (BrowserInfo.get().isChrome()) {
+ element.setType("text/cache");
+ } else {
+ element.setType("text/plain");
+ }
element.setHeight("0px");
element.setWidth("0px");
return element;