summaryrefslogtreecommitdiffstats
path: root/dom/browser-element/BrowserElementParent.js
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@wolfbeast.com>2019-03-25 09:33:03 +0100
committerGitHub <noreply@github.com>2019-03-25 09:33:03 +0100
commita1ad1d835b66e9300cc011244a23aea5d660baf1 (patch)
tree0956b0a08cd9b742821205535942913835ec97bc /dom/browser-element/BrowserElementParent.js
parent834ea744c2bf56d951c0134f6043f692b28c36ef (diff)
parentc9d2e9bcfb77657b3be7d368e57f43747c23ddc4 (diff)
downloadUXP-a1ad1d835b66e9300cc011244a23aea5d660baf1.tar
UXP-a1ad1d835b66e9300cc011244a23aea5d660baf1.tar.gz
UXP-a1ad1d835b66e9300cc011244a23aea5d660baf1.tar.lz
UXP-a1ad1d835b66e9300cc011244a23aea5d660baf1.tar.xz
UXP-a1ad1d835b66e9300cc011244a23aea5d660baf1.zip
Merge pull request #1023 from Ascrod/default-pref
Remove obsolete getPref helpers.
Diffstat (limited to 'dom/browser-element/BrowserElementParent.js')
-rw-r--r--dom/browser-element/BrowserElementParent.js13
1 files changed, 2 insertions, 11 deletions
diff --git a/dom/browser-element/BrowserElementParent.js b/dom/browser-element/BrowserElementParent.js
index 67d05f0ab..8e4475bfa 100644
--- a/dom/browser-element/BrowserElementParent.js
+++ b/dom/browser-element/BrowserElementParent.js
@@ -23,15 +23,6 @@ function debug(msg) {
//dump("BrowserElementParent - " + msg + "\n");
}
-function getIntPref(prefName, def) {
- try {
- return Services.prefs.getIntPref(prefName);
- }
- catch(err) {
- return def;
- }
-}
-
function handleWindowEvent(e) {
if (this._browserElementParents) {
let beps = ThreadSafeChromeUtils.nondeterministicGetWeakMapKeys(this._browserElementParents);
@@ -856,8 +847,8 @@ BrowserElementParent.prototype = {
*/
zoom: defineNoReturnMethod(function(zoom) {
zoom *= 100;
- zoom = Math.min(getIntPref("zoom.maxPercent", 300), zoom);
- zoom = Math.max(getIntPref("zoom.minPercent", 50), zoom);
+ zoom = Math.min(Services.prefs.getIntPref("zoom.maxPercent", 300), zoom);
+ zoom = Math.max(Services.prefs.getIntPref("zoom.minPercent", 50), zoom);
this._sendAsyncMsg('zoom', {zoom: zoom / 100.0});
}),