Bug 1226699 - Add per-app DevTools prefs to Graphene. r=fabrice
authorJ. Ryan Stinnett <jryans@gmail.com>
Wed, 18 Nov 2015 23:43:15 -0600
changeset 310787 06223b0f30bb1e057b6d118ca2c03ff6f0176520
parent 310786 6f5cb09bd5342a7987223a714de0b6aa67cfe3f4
child 310788 11a75b65a0f5d82213be0db96b8f2002901baaa1
push id7793
push usercliu@mozilla.com
push dateTue, 24 Nov 2015 00:21:42 +0000
reviewersfabrice
bugs1226699
milestone45.0a1
Bug 1226699 - Add per-app DevTools prefs to Graphene. r=fabrice
b2g/graphene/graphene.js
--- a/b2g/graphene/graphene.js
+++ b/b2g/graphene/graphene.js
@@ -48,8 +48,15 @@ pref("b2g.nativeWindowGeometry.screenX",
 pref("b2g.nativeWindowGeometry.screenY", -1); // center
 pref("b2g.nativeWindowGeometry.fullscreen", false);
 
 pref("media.useAudioChannelService", false);
 
 #ifdef ENABLE_MARIONETTE
 pref("b2g.is_mulet", true);
 #endif
+
+// Most DevTools prefs are set from the shared file
+// devtools/client/preferences/devtools.js, but this one is currently set
+// per-app or per-channel.
+// Number of usages of the web console or scratchpad. If this is less than 5,
+// then pasting code into the web console or scratchpad is disabled
+pref("devtools.selfxss.count", 5);