Bug 1001348 - Keep system sources when certified debugging is allowed. r=vingtetun

This commit is contained in:
J. Ryan Stinnett 2014-05-27 17:11:34 -07:00
parent 4e9c0559a8
commit 3cff88f9d2

View File

@ -472,6 +472,13 @@ SettingsListener.observe('debugger.remote-mode', false, function(value) {
#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) {