add detections for newest IE8 on win7 and x64

git-svn-id: file:///home/svn/framework3/trunk@8206 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
James Lee 2010-01-22 23:47:50 +00:00
parent 7e5ad7bfa3
commit ae673cccd7
1 changed files with 12 additions and 0 deletions

View File

@ -81,6 +81,9 @@ function getVersion(){
case "10467": // "Opera_962_en_Setup.exe"
os_name = "#{oses::WINDOWS}";
break;
//default:
// document.write(opera.buildNumber('inconspicuous'));
// break;
}
}
} else if (typeof window.onmousewheel != 'undefined') {
@ -125,6 +128,9 @@ function getVersion(){
if (version.match(/i.86/)) {
arch = "#{ARCH_X86}";
}
if (version.match(/x86_64/)) {
arch = "#{ARCH_X86_64}";
}
if (version.match(/Windows/)) {
os_name = "#{oses::WINDOWS}";
switch(version) {
@ -239,6 +245,8 @@ function getVersion(){
case "580":
// IE 8.0.7100.0, Windows 7 English
// IE 8.0.7100.0, Windows 7 64-bit English
case "5816385":
// IE 8.0.7600.16385, Windows 7 English
ua_version = "8.0";
os_flavor = "7";
os_sp = "SP0";
@ -247,7 +255,9 @@ function getVersion(){
// document.writeln(version);
// break;
}
if (!ua_version) {
// The ScriptEngine functions failed us, try some object detection
if (document.documentElement && (typeof document.documentElement.style.maxHeight)!="undefined") {
// IE8 detection straight from IEBlog. Thank you Microsoft.
try {
@ -275,6 +285,8 @@ function getVersion(){
}
}
if (!os_name && navigator.platform == "Win32") { os_name = "#{oses::WINDOWS}"; }
//--
// Flavor
//--