Bug 736104 - Expose capabilities to DOM. r=mrbkap
authorChuck Lee <chulee@mozilla.com>
Thu, 08 Nov 2012 15:32:16 +0800
changeset 113016 657980dc46fd2fbf97efdf0767037fb62377093d
parent 113015 b1501a0a129016d7e7d4ab8d4d663bc15c1c2b92
child 113017 3b036060e831c9a6a1b1281aba9cedf82240da65
push id23847
push userphilringnalda@gmail.com
push dateTue, 13 Nov 2012 05:07:25 +0000
treeherdermozilla-central@1b0226622e94 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs736104
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 736104 - Expose capabilities to DOM. r=mrbkap
dom/wifi/DOMWifiManager.js
--- a/dom/wifi/DOMWifiManager.js
+++ b/dom/wifi/DOMWifiManager.js
@@ -21,16 +21,17 @@ function DOMWifiManager() {
 }
 
 function exposeCurrentNetwork(currentNetwork) {
   currentNetwork.__exposedProps__ = exposeCurrentNetwork.currentNetworkApi;
 }
 
 exposeCurrentNetwork.currentNetworkApi = {
   ssid: "r",
+  capabilities: "r",
   known: "r"
 };
 
 // For smaller, read-only APIs, we expose any property that doesn't begin with
 // an underscore.
 function exposeReadOnly(obj) {
   var exposedProps = {};
   for (let i in obj) {