Bug 1088952 - Disable "Enable wi-fi" toggle on beta due to missing permission. r=rnewman, a=lmandel
authorMark Finkle <mfinkle@mozilla.com>
Sat, 25 Oct 2014 19:43:45 -0700
changeset 225810 9fd76ad57dbe
parent 225809 184b704568ff
child 225811 4fd0f4651a61
push id4024
push userrnewman@mozilla.com
push date2014-10-26 02:43 +0000
treeherdermozilla-beta@9fd76ad57dbe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman, lmandel
bugs1088952
milestone34.0
Bug 1088952 - Disable "Enable wi-fi" toggle on beta due to missing permission. r=rnewman, a=lmandel
mobile/android/modules/NetErrorHelper.jsm
--- a/mobile/android/modules/NetErrorHelper.jsm
+++ b/mobile/android/modules/NetErrorHelper.jsm
@@ -68,24 +68,21 @@ handlers.wifi = {
   QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver,
                                          Ci.nsISupportsWeakReference]),
 
   GetWeakReference: function() {
     return Cu.getWeakReference(this);
   },
 
   onPageShown: function(browser) {
-      // If we have a connection, don't bother showing the wifi toggle.
-      let network = Cc["@mozilla.org/network/network-link-service;1"].getService(Ci.nsINetworkLinkService);
-      if (network.isLinkUp && network.linkStatusKnown) {
-        let nodes = browser.contentDocument.querySelectorAll("#wifi");
-        for (let i = 0; i < nodes.length; i++) {
-          nodes[i].style.display = "none";
-        }
-      }
+    // Hide Wifi helper in Fx34
+    let nodes = browser.contentDocument.querySelectorAll("#wifi");
+    for (let i = 0; i < nodes.length; i++) {
+      nodes[i].style.display = "none";
+    }
   },
 
   handleClick: function(event) {
     let node = event.target;
     while(node && node.id !== "wifi") {
       node = node.parentNode;
     }