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: change the name of the (hopefully temporary) pref
This commit is contained in:
parent
50ac1f1cbc
commit
4f7f0fd842
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user