diff options
author | Johannes Dahlström <johannes.dahlstrom@vaadin.com> | 2012-09-04 13:19:39 +0000 |
---|---|---|
committer | Johannes Dahlström <johannes.dahlstrom@vaadin.com> | 2012-09-04 13:19:39 +0000 |
commit | b4e243c87d4b4f28fa18affecb855b8731682a59 (patch) | |
tree | 066d61dff0cc92d8ad71b56e7ef21671a80e6d04 | |
parent | 1db9f49436033878f807c74213f2209d4052f901 (diff) | |
download | vaadin-framework-b4e243c87d4b4f28fa18affecb855b8731682a59.tar.gz vaadin-framework-b4e243c87d4b4f28fa18affecb855b8731682a59.zip |
Tell IE10 to emulate IE9 until IE10 is properly supported (#9462, #9214)
svn changeset:24306/svn branch:6.8
-rw-r--r-- | src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java index 9313e3bcad..024ab7f637 100644 --- a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java +++ b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java @@ -2079,9 +2079,16 @@ public abstract class AbstractApplicationServlet extends HttpServlet implements WebBrowser browser = getApplicationContext(request.getSession()) .getBrowser(); if (browser.isIE()) { + String content = "chrome=1"; + if (browser.getBrowserMajorVersion() == 10) { + // Tell IE10 to emulate IE9 until IE10 is properly supported + // (#9462, #9214) + content = "IE=9; " + content; + } // Chrome frame in all versions of IE (only if Chrome frame is // installed) - page.write("<meta http-equiv=\"X-UA-Compatible\" content=\"chrome=1\"/>\n"); + page.write("<meta http-equiv=\"X-UA-Compatible\" content=\"" + + content + "\"/>\n"); } page.write("<style type=\"text/css\">" |