diff --git a/dom/battery/test/test_battery_unprivileged.html b/dom/battery/test/test_battery_unprivileged.html index 2129aaf6a40f..467b16cb1233 100644 --- a/dom/battery/test/test_battery_unprivileged.html +++ b/dom/battery/test/test_battery_unprivileged.html @@ -17,7 +17,6 @@ /** Test for Battery API **/ ok(!("getBattery" in navigator), "navigator.getBattery should not exist for unprivileged web content"); ok(!("battery" in navigator), "navigator.battery should not exist"); -ok(!("BatteryManager" in window), "BatteryManager should not exist"); diff --git a/dom/tests/mochitest/general/test_interfaces.js b/dom/tests/mochitest/general/test_interfaces.js index d4a9a6b645cc..156058d6fabb 100644 --- a/dom/tests/mochitest/general/test_interfaces.js +++ b/dom/tests/mochitest/general/test_interfaces.js @@ -180,6 +180,8 @@ var interfaceNamesInGlobalScope = [ // IMPORTANT: Do not change this list without review from a DOM peer! { name: "BaseAudioContext", insecureContext: true }, // IMPORTANT: Do not change this list without review from a DOM peer! + { name: "BatteryManager", insecureContext: true }, + // IMPORTANT: Do not change this list without review from a DOM peer! { name: "BeforeUnloadEvent", insecureContext: true }, // IMPORTANT: Do not change this list without review from a DOM peer! { name: "BiquadFilterNode", insecureContext: true }, diff --git a/dom/webidl/BatteryManager.webidl b/dom/webidl/BatteryManager.webidl index e3435ee9e52b..a964f3b0b014 100644 --- a/dom/webidl/BatteryManager.webidl +++ b/dom/webidl/BatteryManager.webidl @@ -10,7 +10,6 @@ * liability, trademark and document use rules apply. */ -[ChromeOnly] interface BatteryManager : EventTarget { readonly attribute boolean charging; readonly attribute unrestricted double chargingTime;