Project

General

Profile

Bug #2683 ยป 0001-Fix-IE-10-11-compatibility-with-progressive-boot.patch

Bruce Toll, 02/17/2014 03:13 PM

View differences:

src/Wt/WApplication.C
setLocalizedStrings(0);
#endif // !WT_TARGET_JAVA
if (environment().agentIsIE()) {
if (!environment().javaScript() && environment().agentIsIE()) {
/*
* FIXME: Similar code in WebRenderer.C must be kept in sync for bootstrap boot.
* Alternatively, a common function could handle the logic for both cases.
*/
if (environment().agent() < WEnvironment::IE9) {
const Configuration& conf = environment().server()->configuration();
bool selectIE7 = conf.uaCompatible().find("IE8=IE7")
......
if (selectIE7)
addMetaHeader(MetaHttpHeader, "X-UA-Compatible", "IE=7");
} else
addMetaHeader(MetaHttpHeader, "X-UA-Compatible", "IE=9");
} else if (environment().agent() == WEnvironment::IE9) {
addMetaHeader(MetaHttpHeader, "X-UA-Compatible", "IE=9");
} else if (environment().agent() == WEnvironment::IE10) {
addMetaHeader(MetaHttpHeader, "X-UA-Compatible", "IE=10");
} else {
addMetaHeader(MetaHttpHeader, "X-UA-Compatible", "IE=11");
}
}
domRoot_ = new WContainerWidget();
src/web/WebRenderer.C
}
} else
if (session_.env().agentIsIE()) {
/*
* FIXME: Similar code in WApplication must be kept in sync for progressive boot
* Alternatively, a common function could handle the logic for both cases.
*/
if (session_.env().agent() < WEnvironment::IE9) {
const Configuration& conf = session_.env().server()->configuration();
bool selectIE7 = conf.uaCompatible().find("IE8=IE7")
    (1-1/1)