Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

FIX: move enable settings "devtools.debugger.remote-enabled" in overr…

…ide-settings.json
  • Loading branch information...
commit 62342a07ebc9f841647879325f67aff72318e9df 1 parent c774b4e
@rpl rpl authored
View
3  build/override-settings.json
@@ -1,6 +1,7 @@
{
"set": {
- "debug.oop.disabled": true
+ "debug.oop.disabled": true,
+ "devtools.debugger.remote-enabled": true
},
"remove": ["ftu.manifestURL"]
}
View
26 prosthesis/content/patch-start-debugger.js
@@ -1,37 +1,23 @@
// patch startDebugger to add simulator-actors and pingback simulator manager
// on ready.
-window.addEventListener("ContentStart", function() {
- function log(msg) {
+{
+ let log = function log(msg) {
var DEBUG_LOG = true;
if (DEBUG_LOG)
dump("prosthesis:"+msg+"\n");
- }
+ };
log("patch startDebugger");
- var presimulator_startDebugger = window.startDebugger;
+ let presimulator_startDebugger = window.startDebugger;
window.startDebugger = function startDebugger() {
presimulator_startDebugger();
DebuggerServer.addActors('chrome://prosthesis/content/simulator-actors.js');
pingback();
}
- log("enable and start debugger");
- let lock = window.navigator.mozSettings.createLock();
- try {
- let getReq = lock.get("devtools.debugger.remote-enabled");
- getReq.onsuccess(enable);
-
- function enable() {
- if (getReq.result["devtools.debugger.remote-enabled"] !== true)
- lock.set({"devtools.debugger.remote-enabled": true});
- }
- } catch(e) {
- lock.set({"devtools.debugger.remote-enabled": true});
- }
-
- function pingback() {
+ let pingback = function pingback() {
log("sending pingback");
let pprefs = Cc['@mozilla.org/preferences-service;1']
@@ -58,4 +44,4 @@ window.addEventListener("ContentStart", function() {
}
}
}
-});
+}
View
1  prosthesis/defaults/preferences/prefs.js
@@ -12,5 +12,4 @@ user_pref("general.useragent.override", "Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.
user_pref("power.screen.timeout", 86400);
// Enable remote debugging and other tools.
-user_pref("devtools.debugger.remote-enabled", true);
user_pref("marionette.defaultPrefs.enabled", false);
Please sign in to comment.
Something went wrong with that request. Please try again.