summaryrefslogtreecommitdiffstats
path: root/services/fxaccounts
diff options
context:
space:
mode:
authorAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-08 21:06:29 -0400
committerAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-13 11:37:45 -0400
commit2d3b7717ae8ddfa5e6561cff5d6daa7f80a939e5 (patch)
tree8eb63f577991014f222446e117b300495cb15325 /services/fxaccounts
parent1d0af8b59102331cba100529e1697f91faf0c86b (diff)
downloadUXP-2d3b7717ae8ddfa5e6561cff5d6daa7f80a939e5.tar
UXP-2d3b7717ae8ddfa5e6561cff5d6daa7f80a939e5.tar.gz
UXP-2d3b7717ae8ddfa5e6561cff5d6daa7f80a939e5.tar.lz
UXP-2d3b7717ae8ddfa5e6561cff5d6daa7f80a939e5.tar.xz
UXP-2d3b7717ae8ddfa5e6561cff5d6daa7f80a939e5.zip
Issue #991 Part 6: Services
Diffstat (limited to 'services/fxaccounts')
-rw-r--r--services/fxaccounts/FxAccounts.jsm14
1 files changed, 2 insertions, 12 deletions
diff --git a/services/fxaccounts/FxAccounts.jsm b/services/fxaccounts/FxAccounts.jsm
index 5bed881ea..0e072ee74 100644
--- a/services/fxaccounts/FxAccounts.jsm
+++ b/services/fxaccounts/FxAccounts.jsm
@@ -1000,12 +1000,7 @@ FxAccountsInternal.prototype = {
// The purpose of this pref is to expedite any auth errors as the result of a
// expired or revoked FxA session token, e.g., from resetting or changing the FxA
// password.
- let ignoreCachedAuthCredentials = false;
- try {
- ignoreCachedAuthCredentials = Services.prefs.getBoolPref("services.sync.debug.ignoreCachedAuthCredentials");
- } catch(e) {
- // Pref doesn't exist
- }
+ let ignoreCachedAuthCredentials = Services.prefs.getBoolPref("services.sync.debug.ignoreCachedAuthCredentials", false);
let mustBeValidUntil = this.now() + ASSERTION_USE_PERIOD;
let accountData = yield currentState.getUserAccountData(["cert", "keyPair", "sessionToken"]);
@@ -1239,12 +1234,7 @@ FxAccountsInternal.prototype = {
},
requiresHttps: function() {
- let allowHttp = false;
- try {
- allowHttp = Services.prefs.getBoolPref("identity.fxaccounts.allowHttp");
- } catch(e) {
- // Pref doesn't exist
- }
+ let allowHttp = Services.prefs.getBoolPref("identity.fxaccounts.allowHttp", false);
return allowHttp !== true;
},