bug 457781 — Plugin disabling in Addons Manager does not stick: change the name of the (hopefully temporary) pref

This commit is contained in:
Daniel Brooks 2008-09-30 10:01:27 -05:00
parent 50ac1f1cbc
commit 4f7f0fd842

View File

@ -161,14 +161,14 @@ var Browser = {
}
}
var firstRun = true;
try { firstRun = gPrefService.getBoolPref("startup.firstRun"); } catch (ex) { }
if (firstRun)
var disablePlugins = true;
try { disablePlugins = gPrefService.getBoolPref("temporary.disablePlugins"); } catch (ex) { }
if (disablePlugins)
{
document.getElementById("plugins.enabled").pref.value = false;
this.setPluginState(false);
}
gPrefService.setBoolPref("startup.firstRun", false);
gPrefService.setBoolPref("temporary.disablePlugins", false);
},
setPluginState: function(state)