Vojtech Szocs has uploaded a new change for review.

Change subject: webadmin,userportal: Use X-UA-Compatible with IE=edge
......................................................................

webadmin,userportal: Use X-UA-Compatible with IE=edge

There might be cases when WebAdmin or UserPortal web page
is rendered in Compatibility Mode in Internet Explorer,
instead of using Standards Mode. For example, the user
might use "Compatibility View Settings" dialog to control
which pages are rendered in Compatibility Mode.

However, both applications depend on Standards Mode, as
indicated by using HTML5 doctype declaration:

  <!DOCTYPE html>

Trying to render both applications in anything other than
Standards Mode will break (mess up) the entire UI.

This patch is meant to override custom Compatibility Mode
settings in Internet Explorer via X-UA-Compatible meta-tag,
forcing Internet Explorer to render both applications in
Standards Mode.

Note 1: 'edge' causes Internet Explorer to use highest
Standards Mode (HTML5/CSS3/etc.) available.

Note 2: meta-tag isn't closed via '/>' since HTML5 defines
this tag as 'void element' which doesn't need to be closed
(closing tag is just redundant).

Change-Id: Id22d27cf6e35a6253d9b00eadf4b519847711d17
Signed-off-by: Vojtech Szocs <vsz...@redhat.com>
---
M 
frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/server/gwt/GwtDynamicHostPageServlet.java
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/15/12215/1

diff --git 
a/frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/server/gwt/GwtDynamicHostPageServlet.java
 
b/frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/server/gwt/GwtDynamicHostPageServlet.java
index a4f43fb..e181e51 100644
--- 
a/frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/server/gwt/GwtDynamicHostPageServlet.java
+++ 
b/frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/server/gwt/GwtDynamicHostPageServlet.java
@@ -50,6 +50,7 @@
 
         writer.append("<!DOCTYPE html><html><head>"); //$NON-NLS-1$
         writer.append("<meta http-equiv=\"content-type\" content=\"text/html; 
charset=UTF-8\">"); //$NON-NLS-1$
+        writer.append("<meta http-equiv=\"X-UA-Compatible\" 
content=\"IE=edge\">"); //$NON-NLS-1$
 
         writer.append("<script type=\"text/javascript\">"); //$NON-NLS-1$
         writeAdditionalJsData(request, writer);


--
To view, visit http://gerrit.ovirt.org/12215
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id22d27cf6e35a6253d9b00eadf4b519847711d17
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vojtech Szocs <vsz...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to