diff --git a/browser/components/customizableui/test/head.js b/browser/components/customizableui/test/head.js index 08b492796d49..4c08b5f635be 100644 --- a/browser/components/customizableui/test/head.js +++ b/browser/components/customizableui/test/head.js @@ -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) {