From: Artur Signell Date: Thu, 23 May 2013 19:27:16 +0000 (+0300) Subject: Fix text / javascript mismatch issue in Chrome (#11275) X-Git-Tag: 7.1.0~90^2~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6de01ac07153002f3752a0571a0060c21ed37230;p=vaadin-framework.git Fix text / javascript mismatch issue in Chrome (#11275) Change-Id: I7516be18401640ded3eb6174b5375bb452a2ba00 --- 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;