summaryrefslogtreecommitdiffstats
path: root/application/basilisk/components
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-03-13 16:36:55 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-03-13 16:36:55 +0100
commitf999f544aad04069b03704d994a99352263f600b (patch)
treeccb01180c10cbd67a14bccce4c3e14e2044ad463 /application/basilisk/components
parentaa1a39311af0516dd6d2610a89b45221b60f3f20 (diff)
downloadUXP-f999f544aad04069b03704d994a99352263f600b.tar
UXP-f999f544aad04069b03704d994a99352263f600b.tar.gz
UXP-f999f544aad04069b03704d994a99352263f600b.tar.lz
UXP-f999f544aad04069b03704d994a99352263f600b.tar.xz
UXP-f999f544aad04069b03704d994a99352263f600b.zip
Remove fxAccountsEnabled checks.
Tag #812
Diffstat (limited to 'application/basilisk/components')
-rw-r--r--application/basilisk/components/preferences/in-content/sync.js32
1 files changed, 8 insertions, 24 deletions
diff --git a/application/basilisk/components/preferences/in-content/sync.js b/application/basilisk/components/preferences/in-content/sync.js
index 2600677a8..32b94de86 100644
--- a/application/basilisk/components/preferences/in-content/sync.js
+++ b/application/basilisk/components/preferences/in-content/sync.js
@@ -92,19 +92,7 @@ var gSyncPane = {
} catch (e) {}
if (!username) {
this.page = FXA_PAGE_LOGGED_OUT;
- } else if (xps.fxAccountsEnabled) {
- // Use cached values while we wait for the up-to-date values
- let cachedComputerName;
- try {
- cachedComputerName = Services.prefs.getCharPref("services.sync.client.name");
- }
- catch (e) {
- cachedComputerName = "";
- }
- document.getElementById("fxaEmailAddress1").textContent = username;
- this._populateComputerName(cachedComputerName);
- this.page = FXA_PAGE_LOGGED_IN;
- } else { // Old Sync
+ } else {
this.page = PAGE_HAS_ACCOUNT;
}
},
@@ -388,17 +376,13 @@ var gSyncPane = {
.getService(Components.interfaces.nsISupports)
.wrappedJSObject;
- if (service.fxAccountsEnabled) {
- this._openAboutAccounts();
- } else {
- let win = Services.wm.getMostRecentWindow("Weave:AccountSetup");
- if (win)
- win.focus();
- else {
- window.openDialog("chrome://browser/content/sync/setup.xul",
- "weaveSetup", "centerscreen,chrome,resizable=no",
- wizardType);
- }
+ let win = Services.wm.getMostRecentWindow("Weave:AccountSetup");
+ if (win)
+ win.focus();
+ else {
+ window.openDialog("chrome://browser/content/sync/setup.xul",
+ "weaveSetup", "centerscreen,chrome,resizable=no",
+ wizardType);
}
},