diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-06-08 17:12:45 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-06-08 17:12:45 +0200 |
commit | fcf214cb3b72cea4c021258c0bf46d8ead175a08 (patch) | |
tree | bd90bb1879e1eeea75e7cba990f110bfd790dcc1 /services/sync/Weave.js | |
parent | 5182fe0455970f1d79d59904604ed3c407ae55ab (diff) | |
download | uxp-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.js | 6 |
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 }, /** |