Bug 917331 - Fix exception on b2g desktop about undefined AdbController object. r=fabrice, a=lsblakk
authorAlexandre Poirot <poirot.alex@gmail.com>
Tue, 17 Sep 2013 14:29:38 -0400
changeset 160637 8b98d09d2077b80829bd46c17aeeeb83de1c0299
parent 160636 1e701acdecca5266be9a086a20b8e19931dbf2e3
child 160638 3791f9bc201fec9869c94432a6ec333447398e10
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice, lsblakk
bugs917331
milestone26.0a2
Bug 917331 - Fix exception on b2g desktop about undefined AdbController object. r=fabrice, a=lsblakk
b2g/chrome/content/shell.js
--- a/b2g/chrome/content/shell.js
+++ b/b2g/chrome/content/shell.js
@@ -1044,19 +1044,21 @@ let RemoteDebugger = {
         DebuggerServer.addActors("resource://gre/modules/devtools/server/actors/styleeditor.js");
         DebuggerServer.enableWebappsContentActor = true;
       }
       DebuggerServer.addActors('chrome://browser/content/dbg-browser-actors.js');
       DebuggerServer.addActors("resource://gre/modules/devtools/server/actors/webapps.js");
       DebuggerServer.registerModule("devtools/server/actors/device");
       DebuggerServer.registerModule("devtools/server/actors/inspector")
 
+#ifdef MOZ_WIDGET_GONK
       DebuggerServer.onConnectionChange = function(what) {
         AdbController.updateState();
       }
+#endif
     }
 
     let path = Services.prefs.getCharPref("devtools.debugger.unix-domain-socket") ||
                "/data/local/debugger-socket";
     try {
       DebuggerServer.openListener(path);
     } catch (e) {
       dump('Unable to start debugger server: ' + e + '\n');