mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Backed out changeset 0462e7a66185 (bug 1369801
)
MozReview-Commit-ID: Hc6hLI0Ywxj
This commit is contained in:
parent
12c5c09136
commit
078008bc28
@ -187,7 +187,6 @@ BrowserToolboxProcess.prototype = {
|
||||
// We would like to copy prefs into this new profile...
|
||||
let prefsFile = debuggingProfileDir.clone();
|
||||
prefsFile.append("prefs.js");
|
||||
|
||||
// ... but unfortunately, when we run tests, it seems the starting profile
|
||||
// clears out the prefs file before re-writing it, and in practice the
|
||||
// file is empty when we get here. So just copying doesn't work in that
|
||||
@ -195,21 +194,8 @@ BrowserToolboxProcess.prototype = {
|
||||
// We could force a sync pref flush and then copy it... but if we're doing
|
||||
// that, we might as well just flush directly to the new profile, which
|
||||
// always works:
|
||||
|
||||
// Before dumping the preferences to prefsFile, clear the current pref for
|
||||
// extensions.lastAppVersion. The AddonManager expects this pref to be undefined
|
||||
// when loading a new profile, this will trigger the installation of system addons
|
||||
// without showing the addon update popup.
|
||||
let appVersion = Services.prefs.getCharPref("extensions.lastAppVersion", "");
|
||||
Services.prefs.clearUserPref("extensions.lastAppVersion");
|
||||
|
||||
Services.prefs.savePrefFile(prefsFile);
|
||||
|
||||
// Restore the overridden extensions.lastAppVersion preference.
|
||||
if (appVersion) {
|
||||
Services.prefs.setCharPref("extensions.lastAppVersion", appVersion);
|
||||
}
|
||||
|
||||
dumpn("Finished creating the chrome toolbox user profile at: " +
|
||||
this._dbgProfilePath);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user