Bug 1215494 - Don't set b2g.safe_mode pref in child process. r=fabrice

This commit is contained in:
Gregor Wagner 2015-12-03 18:23:22 +01:00
parent 7f31dc18b2
commit 410dfb294b

View File

@ -848,7 +848,9 @@ nsAppShell::nsAppShell()
, mPowerKeyChecked(false) , mPowerKeyChecked(false)
{ {
gAppShell = this; gAppShell = this;
Preferences::SetCString("b2g.safe_mode", "unset"); if (XRE_IsParentProcess()) {
Preferences::SetCString("b2g.safe_mode", "unset");
}
} }
nsAppShell::~nsAppShell() nsAppShell::~nsAppShell()