diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-04-16 14:51:15 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-04-16 14:51:15 -0400 |
commit | 868c9b8d7f6771b7540ace735229f02f8cc46aaf (patch) | |
tree | 2f581ed2b5b4db8a535ba0c9d306751f531cf4f2 /application/basilisk/base/content | |
parent | 519d0cf5523b3e83d647ebbf0fd132dea7826d95 (diff) | |
download | UXP-868c9b8d7f6771b7540ace735229f02f8cc46aaf.tar UXP-868c9b8d7f6771b7540ace735229f02f8cc46aaf.tar.gz UXP-868c9b8d7f6771b7540ace735229f02f8cc46aaf.tar.lz UXP-868c9b8d7f6771b7540ace735229f02f8cc46aaf.tar.xz UXP-868c9b8d7f6771b7540ace735229f02f8cc46aaf.zip |
[BASILISK] Port PM Sync Client - Part 5: Port the original sync toolbar button and create a synced tabs toolbar button
Diffstat (limited to 'application/basilisk/base/content')
-rw-r--r-- | application/basilisk/base/content/browser.js | 5 | ||||
-rw-r--r-- | application/basilisk/base/content/browser.xul | 12 |
2 files changed, 16 insertions, 1 deletions
diff --git a/application/basilisk/base/content/browser.js b/application/basilisk/base/content/browser.js index 49ee14848..a752f4cd9 100644 --- a/application/basilisk/base/content/browser.js +++ b/application/basilisk/base/content/browser.js @@ -6254,7 +6254,10 @@ function checkEmptyPageOrigin(browser = gBrowser.selectedBrowser, #ifdef MOZ_SERVICES_SYNC function BrowserOpenSyncTabs() { - switchToTabHavingURI("about:sync-tabs", true); + if (gSyncUI._needsSetup()) + gSyncUI.openSetup(); + else + switchToTabHavingURI("about:sync-tabs", true); } #endif diff --git a/application/basilisk/base/content/browser.xul b/application/basilisk/base/content/browser.xul index d50a5c773..d99ac9bc8 100644 --- a/application/basilisk/base/content/browser.xul +++ b/application/basilisk/base/content/browser.xul @@ -911,6 +911,18 @@ type="checkbox" label="&fullScreenCmd.label;" tooltip="dynamic-shortcut-tooltip"/> + +#ifdef MOZ_SERVICES_SYNC + <toolbarbutton id="sync-button" + class="toolbarbutton-1 chromeclass-toolbar-additional" + label="&syncToolbarButton.label;" + oncommand="gSyncUI.handleToolbarButton();"/>> + + <toolbarbutton id="sync-tabs-button" + class="toolbarbutton-1 chromeclass-toolbar-additional" + label="&syncTabsToolbarButton.label;" + oncommand="BrowserOpenSyncTabs();"/> +#endif </toolbarpalette> </toolbox> |