bug 457781 — Plugin disabling in Addons Manager does not stick: catch the first run of fennec and disable all plugins so that new users won't see the crashyness

This commit is contained in:
Daniel Brooks 2008-09-30 08:23:18 -05:00
parent ba255bc2f2
commit 50ac1f1cbc
2 changed files with 11 additions and 1 deletions

View File

@ -160,6 +160,15 @@ var Browser = {
setTimeout(function() { self.currentBrowser.loadURI(whereURI, null, null, false); }, 0); setTimeout(function() { self.currentBrowser.loadURI(whereURI, null, null, false); }, 0);
} }
} }
var firstRun = true;
try { firstRun = gPrefService.getBoolPref("startup.firstRun"); } catch (ex) { }
if (firstRun)
{
document.getElementById("plugins.enabled").pref.value = false;
this.setPluginState(false);
}
gPrefService.setBoolPref("startup.firstRun", false);
}, },
setPluginState: function(state) setPluginState: function(state)

View File

@ -265,7 +265,8 @@
<richpref pref="javascript.enabled" type="bool" title="&javascript.enabled.title;"> <richpref pref="javascript.enabled" type="bool" title="&javascript.enabled.title;">
&javascript.enabled.description; &javascript.enabled.description;
</richpref> </richpref>
<richpref pref="plugins.enabled" type="bool" title="&plugins.enabled.title;" onsynctopreference="Browser.setPluginState(this.value);"> <richpref pref="plugins.enabled" type="bool" title="&plugins.enabled.title;" id="plugins.enabled"
onsynctopreference="Browser.setPluginState(this.value);">
&plugins.enabled.description; &plugins.enabled.description;
</richpref> </richpref>