summaryrefslogtreecommitdiffstats
path: root/application/basilisk/base/content/browser-syncui.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-12-01 23:40:09 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-12-01 23:40:09 +0100
commitcaba7e406d9bee4f454d4ff51140e821f09aac5d (patch)
tree8572565c3c188e4bcb5ad592236d5670923d6a6c /application/basilisk/base/content/browser-syncui.js
parent11d1af7af1799ca32216883862aa78e2e18b57c2 (diff)
downloadUXP-caba7e406d9bee4f454d4ff51140e821f09aac5d.tar
UXP-caba7e406d9bee4f454d4ff51140e821f09aac5d.tar.gz
UXP-caba7e406d9bee4f454d4ff51140e821f09aac5d.tar.lz
UXP-caba7e406d9bee4f454d4ff51140e821f09aac5d.tar.xz
UXP-caba7e406d9bee4f454d4ff51140e821f09aac5d.zip
[BASILISK] Make Basilisk front-end use Weave
Diffstat (limited to 'application/basilisk/base/content/browser-syncui.js')
-rw-r--r--application/basilisk/base/content/browser-syncui.js35
1 files changed, 7 insertions, 28 deletions
diff --git a/application/basilisk/base/content/browser-syncui.js b/application/basilisk/base/content/browser-syncui.js
index 51bcb15d5..64290a2a9 100644
--- a/application/basilisk/base/content/browser-syncui.js
+++ b/application/basilisk/base/content/browser-syncui.js
@@ -293,17 +293,13 @@ var gSyncUI = {
*/
openSetup: function SUI_openSetup(wizardType, entryPoint = "syncbutton") {
- if (this.weaveService.fxAccountsEnabled) {
- this.openPrefs(entryPoint);
- } 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);
}
},
@@ -328,23 +324,6 @@ var gSyncUI = {
gFxAccounts.openSignInAgainPage(entryPoint);
},
- openSyncedTabsPanel() {
- let placement = CustomizableUI.getPlacementOfWidget("sync-button");
- let area = placement ? placement.area : CustomizableUI.AREA_NAVBAR;
- let anchor = document.getElementById("sync-button") ||
- document.getElementById("PanelUI-menu-button");
- if (area == CustomizableUI.AREA_PANEL) {
- // The button is in the panel, so we need to show the panel UI, then our
- // subview.
- PanelUI.show().then(() => {
- PanelUI.showSubView("PanelUI-remotetabs", anchor, area);
- }).catch(Cu.reportError);
- } else {
- // It is placed somewhere else - just try and show it.
- PanelUI.showSubView("PanelUI-remotetabs", anchor, area);
- }
- },
-
/* After Sync is initialized we perform a once-only check for the sync
button being in "customize purgatory" and if so, move it to the panel.
This is done primarily for profiles created before SyncedTabs landed,