diff options
Diffstat (limited to 'webbrowser/components/nsBrowserGlue.js')
-rw-r--r-- | webbrowser/components/nsBrowserGlue.js | 16 |
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 |