зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
070b95a69a
Коммит
713c2a669e
|
@ -160,6 +160,15 @@ var Browser = {
|
|||
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)
|
||||
|
|
|
@ -265,7 +265,8 @@
|
|||
<richpref pref="javascript.enabled" type="bool" title="&javascript.enabled.title;">
|
||||
&javascript.enabled.description;
|
||||
</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;
|
||||
</richpref>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче