зеркало из https://github.com/mozilla/gecko-dev.git
Bug 978127 - Update various win8 specific australis customized ui tests to use new Services.metro.supported prop. r=gijs
This commit is contained in:
Родитель
8f1a74a6da
Коммит
489491b4d6
|
@ -60,12 +60,9 @@ function resetCustomization() {
|
|||
}
|
||||
|
||||
function isInWin8() {
|
||||
let sysInfo = Services.sysinfo;
|
||||
let osName = sysInfo.getProperty("name");
|
||||
let version = sysInfo.getProperty("version");
|
||||
|
||||
// Windows 8 is version >= 6.2
|
||||
return osName == "Windows_NT" && version >= 6.2;
|
||||
if (!Services.metro)
|
||||
return false;
|
||||
return Services.metro.supported;
|
||||
}
|
||||
|
||||
function addSwitchToMetroButtonInWindows8(areaPanelPlacements) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче