зеркало из 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() {
|
function isInWin8() {
|
||||||
let sysInfo = Services.sysinfo;
|
if (!Services.metro)
|
||||||
let osName = sysInfo.getProperty("name");
|
return false;
|
||||||
let version = sysInfo.getProperty("version");
|
return Services.metro.supported;
|
||||||
|
|
||||||
// Windows 8 is version >= 6.2
|
|
||||||
return osName == "Windows_NT" && version >= 6.2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function addSwitchToMetroButtonInWindows8(areaPanelPlacements) {
|
function addSwitchToMetroButtonInWindows8(areaPanelPlacements) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче