Bug 1020948 - Stop preventing source discarding when using devtools. r=jryans
authorAlexandre Poirot <poirot.alex@gmail.com>
Wed, 25 Jun 2014 14:50:00 +0200
changeset 191170 9ea6813cf5cca68c0a8aa88bd4541b2b61aae8f5
parent 191169 82a75a2df1c249ad088e4498b5c55dac4111cd43
child 191171 ccbe51e7e5412433240d8be8dddaf67e881386df
push id8436
push usercbook@mozilla.com
push dateFri, 27 Jun 2014 13:56:57 +0000
treeherderb2g-inbound@22ea396750e8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjryans
bugs1020948
milestone33.0a1
Bug 1020948 - Stop preventing source discarding when using devtools. r=jryans
b2g/chrome/content/settings.js
--- a/b2g/chrome/content/settings.js
+++ b/b2g/chrome/content/settings.js
@@ -467,23 +467,16 @@ SettingsListener.observe('debugger.remot
     dump("Error while initializing devtools: " + e + "\n" + e.stack + "\n");
   }
 
 #ifdef MOZ_WIDGET_GONK
   AdbController.setRemoteDebuggerState(value != 'disabled');
 #endif
 });
 
-// If debug access to certified apps is allowed, we need to preserve system
-// sources so that they are visible in the debugger.
-let forbidCertified =
-  Services.prefs.getBoolPref('devtools.debugger.forbid-certified-apps');
-Services.prefs.setBoolPref('javascript.options.discardSystemSource',
-                           forbidCertified);
-
 // =================== Device Storage ====================
 SettingsListener.observe('device.storage.writable.name', 'sdcard', function(value) {
   if (Services.prefs.getPrefType('device.storage.writable.name') != Ci.nsIPrefBranch.PREF_STRING) {
     // We clear the pref because it used to be erroneously written as a bool
     // and we need to clear it before we can change it to have the correct type.
     Services.prefs.clearUserPref('device.storage.writable.name');
   }
   Services.prefs.setCharPref('device.storage.writable.name', value);