mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
ba255bc2f2
commit
50ac1f1cbc
@ -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)
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user