summaryrefslogtreecommitdiffstats
path: root/webbrowser/components/nsBrowserGlue.js
diff options
context:
space:
mode:
authorThomas Groman <tgroman@nuegia.net>2020-05-07 21:52:01 -0700
committerThomas Groman <tgroman@nuegia.net>2020-05-07 21:52:01 -0700
commitf8db70f7d61b90e2ed273b71559b6a5b3b62e5be (patch)
treecf937b622e4fb74a716aaa8b327224790b4f9496 /webbrowser/components/nsBrowserGlue.js
parent15f51c2ef494e2db935178123bb957267275af77 (diff)
downloadwebbrowser-f8db70f7d61b90e2ed273b71559b6a5b3b62e5be.tar
webbrowser-f8db70f7d61b90e2ed273b71559b6a5b3b62e5be.tar.gz
webbrowser-f8db70f7d61b90e2ed273b71559b6a5b3b62e5be.tar.lz
webbrowser-f8db70f7d61b90e2ed273b71559b6a5b3b62e5be.tar.xz
webbrowser-f8db70f7d61b90e2ed273b71559b6a5b3b62e5be.zip
group hardware accel settings
Diffstat (limited to 'webbrowser/components/nsBrowserGlue.js')
-rw-r--r--webbrowser/components/nsBrowserGlue.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/webbrowser/components/nsBrowserGlue.js b/webbrowser/components/nsBrowserGlue.js
index 2383d8e..1b6cf92 100644
--- a/webbrowser/components/nsBrowserGlue.js
+++ b/webbrowser/components/nsBrowserGlue.js
@@ -1227,13 +1227,15 @@ BrowserGlue.prototype = {
}
#endif
+// Convert user preferences for future version changes section
+
if (currentUIVersion < 20) {
// HPKP change of UI preference; reset enforcement level
Services.prefs.clearUserPref("security.cert_pinning.eforcement_level");
}
if (currentUIVersion < 21) {
- //remove key4.db and cert9.db if those files exist
+ // remove key4.db and cert9.db if those files exist
// XXX: Remove this code block once we actually start using them.
let dsCertFile = Cc["@mozilla.org/file/directory_service;1"]
.getService(Ci.nsIProperties)
@@ -1246,6 +1248,18 @@ if (currentUIVersion < 21) {
if (dsKeyFile.exists()) {
try { dsKeyFile.remove(false); } catch(e) {}
}
+
+ // Reset hardware accelleration settings now that UXP isn't blacklisting as much
+ if (Services.prefs.prefHasUserValue("layers.acceleration.disabled")) {
+ let HWADisabled = Service.prefs.getBoolPref("layers.acceleration.disabled");
+ Services.prefs.setBoolPref("layers.acceleration.enabled", !HWADisabled);
+ Services.prefs.setBoolPref("gfx.direct2d.disabled", HWADisabled);
+ }
+ if (Services.prefs.getBoolPref("layers.acceleration.force-enabled", false)) {
+ Services.prefs.setBoolPref("layers.acceleration.force", true);
+ }
+ Services.prefs.clearUserPref("layers.acceleration.disabled");
+ Services.prefs.clearUserPref("layers.acceleration.force-enabled");
}
// Clear out dirty storage