summaryrefslogtreecommitdiff
path: root/services/sync/Weave.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-06-08 17:12:45 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-06-08 17:12:45 +0200
commitfcf214cb3b72cea4c021258c0bf46d8ead175a08 (patch)
treebd90bb1879e1eeea75e7cba990f110bfd790dcc1 /services/sync/Weave.js
parent5182fe0455970f1d79d59904604ed3c407ae55ab (diff)
downloaduxp-fcf214cb3b72cea4c021258c0bf46d8ead175a08.tar.gz
Partially disentangle FxA from Weave so Pale Moon Sync can work.
Diffstat (limited to 'services/sync/Weave.js')
-rw-r--r--services/sync/Weave.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/services/sync/Weave.js b/services/sync/Weave.js
index 4d79144e32..a414fa0831 100644
--- a/services/sync/Weave.js
+++ b/services/sync/Weave.js
@@ -72,10 +72,12 @@ WeaveService.prototype = {
Ci.nsISupportsWeakReference]),
ensureLoaded: function () {
+#ifndef MC_PALEMOON
// If we are loaded and not using FxA, load the migration module.
if (!this.fxAccountsEnabled) {
Cu.import("resource://services-sync/FxaMigrator.jsm");
}
+#endif
Components.utils.import("resource://services-sync/main.js");
@@ -103,6 +105,9 @@ WeaveService.prototype = {
* @return bool
*/
get fxAccountsEnabled() {
+#ifdef MC_PALEMOON
+ return false;
+#else
try {
// Old sync guarantees '@' will never appear in the username while FxA
// uses the FxA email address - so '@' is the flag we use.
@@ -111,6 +116,7 @@ WeaveService.prototype = {
} catch (_) {
return true; // No username == only allow FxA to be configured.
}
+#endif
},
/**