Change in ovirt-engine[master]: webadmin, userportal: Use X-UA-Compatible with IE=edge

vszocs at redhat.com vszocs at redhat.com
Tue Mar 19 11:01:03 UTC 2013


Vojtech Szocs has submitted this change and it was merged.

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 <vszocs at redhat.com>
---
M frontend/webadmin/modules/frontend/src/main/resources/META-INF/resources/GwtHostPage.jsp
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Vojtech Szocs: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: Id22d27cf6e35a6253d9b00eadf4b519847711d17
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vojtech Szocs <vszocs at redhat.com>
Gerrit-Reviewer: Alexander Wels <awels at redhat.com>
Gerrit-Reviewer: Alona Kaplan <alkaplan at redhat.com>
Gerrit-Reviewer: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Einav Cohen <ecohen at redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchaplik at redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vszocs at redhat.com>



More information about the Engine-commits mailing list