mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-06-20 01:09:25 +00:00
[BASILISK] Restore Tabs from Other Devices history menu item and Add First Sync Progress
This commit is contained in:
@@ -314,11 +314,13 @@
|
||||
key="key_sanitize"
|
||||
command="Tools:Sanitize"/>
|
||||
<menuseparator id="sanitizeSeparator"/>
|
||||
#ifdef MOZ_SERVICES_SYNC
|
||||
<menuitem id="sync-tabs-menuitem"
|
||||
class="syncTabsMenuItem"
|
||||
label="&syncTabsMenu3.label;"
|
||||
label="&syncTabsMenu2.label;"
|
||||
oncommand="BrowserOpenSyncTabs();"
|
||||
hidden="true"/>
|
||||
disabled="true"/>
|
||||
#endif
|
||||
<menuitem id="historyRestoreLastSession"
|
||||
label="&historyRestoreLastSession.label;"
|
||||
command="Browser:RestoreLastSession"/>
|
||||
|
||||
@@ -804,18 +804,29 @@ HistoryMenu.prototype = {
|
||||
},
|
||||
|
||||
toggleTabsFromOtherComputers: function PHM_toggleTabsFromOtherComputers() {
|
||||
// This is a no-op if MOZ_SERVICES_SYNC isn't defined
|
||||
#ifdef MOZ_SERVICES_SYNC
|
||||
// Enable/disable the Tabs From Other Computers menu. Some of the menus handled
|
||||
// by HistoryMenu do not have this menuitem.
|
||||
let menuitem = this._rootElt.getElementsByClassName("syncTabsMenuItem")[0];
|
||||
if (!menuitem)
|
||||
return;
|
||||
|
||||
if (!PlacesUIUtils.shouldShowTabsFromOtherComputersMenuitem()) {
|
||||
// If Sync isn't configured yet, then don't show the menuitem.
|
||||
if (Weave.Status.checkSetup() == Weave.CLIENT_NOT_CONFIGURED ||
|
||||
Weave.Svc.Prefs.get("firstSync", "") == "notReady") {
|
||||
menuitem.setAttribute("hidden", true);
|
||||
return;
|
||||
}
|
||||
|
||||
// The tabs engine might never be inited (if services.sync.registerEngines
|
||||
// is modified), so make sure we avoid undefined errors.
|
||||
let enabled = Weave.Service.isLoggedIn &&
|
||||
Weave.Service.engineManager.get("tabs") &&
|
||||
Weave.Service.engineManager.get("tabs").enabled;
|
||||
menuitem.setAttribute("disabled", !enabled);
|
||||
menuitem.setAttribute("hidden", false);
|
||||
#endif
|
||||
},
|
||||
|
||||
_onPopupShowing: function HM__onPopupShowing(aEvent) {
|
||||
|
||||
@@ -65,7 +65,7 @@ browser.jar:
|
||||
content/browser/browser-fullZoom.js (content/browser-fullZoom.js)
|
||||
content/browser/browser-gestureSupport.js (content/browser-gestureSupport.js)
|
||||
* content/browser/browser-media.js (content/browser-media.js)
|
||||
content/browser/browser-places.js (content/browser-places.js)
|
||||
* content/browser/browser-places.js (content/browser-places.js)
|
||||
content/browser/browser-plugins.js (content/browser-plugins.js)
|
||||
content/browser/browser-refreshblocker.js (content/browser-refreshblocker.js)
|
||||
#ifdef MOZ_SAFE_BROWSING
|
||||
|
||||
@@ -92,10 +92,16 @@ static RedirEntry kRedirMap[] = {
|
||||
"welcomeback", "chrome://browser/content/aboutWelcomeBack.xhtml",
|
||||
nsIAboutModule::ALLOW_SCRIPT
|
||||
},
|
||||
#ifdef MOZ_SERVICES_SYNC
|
||||
{
|
||||
"sync-progress", "chrome://browser/content/sync/progress.xhtml",
|
||||
nsIAboutModule::ALLOW_SCRIPT
|
||||
},
|
||||
{
|
||||
"sync-tabs", "chrome://browser/content/sync/aboutSyncTabs.xul",
|
||||
nsIAboutModule::ALLOW_SCRIPT
|
||||
},
|
||||
#endif
|
||||
{ "home", "chrome://browser/content/abouthome/aboutHome.xhtml",
|
||||
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
|
||||
nsIAboutModule::URI_MUST_LOAD_IN_CHILD |
|
||||
|
||||
@@ -97,7 +97,10 @@ static const mozilla::Module::ContractIDEntry kBrowserContracts[] = {
|
||||
{ NS_ABOUT_MODULE_CONTRACTID_PREFIX "searchreset", &kNS_BROWSER_ABOUT_REDIRECTOR_CID },
|
||||
{ NS_ABOUT_MODULE_CONTRACTID_PREFIX "sessionrestore", &kNS_BROWSER_ABOUT_REDIRECTOR_CID },
|
||||
{ NS_ABOUT_MODULE_CONTRACTID_PREFIX "welcomeback", &kNS_BROWSER_ABOUT_REDIRECTOR_CID },
|
||||
#ifdef MOZ_SERVICES_SYNC
|
||||
{ NS_ABOUT_MODULE_CONTRACTID_PREFIX "sync-tabs", &kNS_BROWSER_ABOUT_REDIRECTOR_CID },
|
||||
{ NS_ABOUT_MODULE_CONTRACTID_PREFIX "sync-progress", &kNS_BROWSER_ABOUT_REDIRECTOR_CID },
|
||||
#endif
|
||||
{ NS_ABOUT_MODULE_CONTRACTID_PREFIX "home", &kNS_BROWSER_ABOUT_REDIRECTOR_CID },
|
||||
{ NS_ABOUT_MODULE_CONTRACTID_PREFIX "newtab", &kNS_BROWSER_ABOUT_REDIRECTOR_CID },
|
||||
{ NS_ABOUT_MODULE_CONTRACTID_PREFIX "preferences", &kNS_BROWSER_ABOUT_REDIRECTOR_CID },
|
||||
|
||||
@@ -723,8 +723,9 @@ you can use these alternative items. Otherwise, their values should be empty. -
|
||||
The word "toolbar" is appended automatically and should not be contained below! -->
|
||||
<!ENTITY tabsToolbar.label "Browser tabs">
|
||||
|
||||
<!-- LOCALIZATION NOTE (syncTabsMenu3.label): This appears in the history menu -->
|
||||
<!ENTITY syncTabsMenu3.label "Synced Tabs">
|
||||
#ifdef MOZ_SERVICES_SYNC
|
||||
<!-- LOCALIZATION NOTE (syncTabsMenu2.label): This appears in the history menu -->
|
||||
<!ENTITY syncTabsMenu2.label "Tabs From Other Devices">
|
||||
|
||||
<!ENTITY syncBrand.shortName.label "Sync">
|
||||
|
||||
@@ -735,6 +736,7 @@ you can use these alternative items. Otherwise, their values should be empty. -
|
||||
<!ENTITY syncReAuthItem.label "Reconnect to &syncBrand.shortName.label;…">
|
||||
<!ENTITY syncReAuthItem.accesskey "R">
|
||||
<!ENTITY syncToolbarButton.label "Sync">
|
||||
#endif
|
||||
|
||||
<!ENTITY customizeMode.menuAndToolbars.header2 "Additional Tools and Features">
|
||||
<!ENTITY customizeMode.menuAndToolbars.empty "Want more tools?">
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
locale/browser/aboutSessionRestore.dtd (%chrome/browser/aboutSessionRestore.dtd)
|
||||
locale/browser/aboutTabCrashed.dtd (%chrome/browser/aboutTabCrashed.dtd)
|
||||
locale/browser/syncCustomize.dtd (%chrome/browser/syncCustomize.dtd)
|
||||
locale/browser/aboutSyncTabs.dtd (%chrome/browser/aboutSyncTabs.dtd)
|
||||
locale/browser/browser.dtd (%chrome/browser/browser.dtd)
|
||||
* locale/browser/browser.dtd (%chrome/browser/browser.dtd)
|
||||
locale/browser/baseMenuOverlay.dtd (%chrome/browser/baseMenuOverlay.dtd)
|
||||
locale/browser/browser.properties (%chrome/browser/browser.properties)
|
||||
locale/browser/customizableui/customizableWidgets.properties (%chrome/browser/customizableui/customizableWidgets.properties)
|
||||
@@ -89,6 +88,10 @@
|
||||
locale/browser/syncKey.dtd (%chrome/browser/syncKey.dtd)
|
||||
locale/browser/syncQuota.dtd (%chrome/browser/syncQuota.dtd)
|
||||
locale/browser/syncQuota.properties (%chrome/browser/syncQuota.properties)
|
||||
#ifdef MOZ_SERVICES_SYNC
|
||||
locale/browser/syncProgress.dtd (%chrome/browser/syncProgress.dtd)
|
||||
locale/browser/aboutSyncTabs.dtd (%chrome/browser/aboutSyncTabs.dtd)
|
||||
#endif
|
||||
% resource search-plugins chrome://browser/locale/searchplugins/
|
||||
#if BUILD_FASTER
|
||||
locale/browser/searchplugins/ (searchplugins/*.xml)
|
||||
|
||||
@@ -124,6 +124,7 @@ browser.jar:
|
||||
skin/classic/browser/syncQuota.css
|
||||
skin/classic/browser/syncProgress-horizontalbar.png
|
||||
skin/classic/browser/syncProgress-horizontalbar@2x.png
|
||||
skin/classic/browser/syncProgress.css
|
||||
|
||||
[extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar:
|
||||
% override chrome://browser/skin/feeds/audioFeedIcon.png chrome://browser/skin/feeds/feedIcon.png
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
@import url(chrome://global/skin/inContentUI.css);
|
||||
|
||||
:root {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0 2em;
|
||||
}
|
||||
|
||||
#floatingBox {
|
||||
margin: 4em auto;
|
||||
max-width: 40em;
|
||||
min-width: 23em;
|
||||
padding: 1em 1.5em;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#successLogo {
|
||||
margin: 1em 2em;
|
||||
}
|
||||
|
||||
#loadingText {
|
||||
margin: 2em 6em;
|
||||
}
|
||||
|
||||
#progressBar {
|
||||
margin: 2em 10em;
|
||||
}
|
||||
|
||||
#uploadProgressBar{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#bottomRow {
|
||||
margin-top: 2em;
|
||||
padding: 0;
|
||||
text-align: end;
|
||||
}
|
||||
@@ -178,6 +178,7 @@ browser.jar:
|
||||
skin/classic/browser/syncProgress-toolbar@2x.png
|
||||
skin/classic/browser/syncProgress-toolbar-inverted.png
|
||||
skin/classic/browser/syncProgress-toolbar-inverted@2x.png
|
||||
skin/classic/browser/syncProgress.css
|
||||
skin/classic/browser/Toolbar-background-noise.png (Toolbar-background-noise.png)
|
||||
skin/classic/browser/lion/toolbarbutton-dropmarker.png (toolbarbutton-dropmarker-lion.png)
|
||||
skin/classic/browser/toolbarbutton-dropmarker@2x.png (toolbarbutton-dropmarker-lion@2x.png)
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
@import url(chrome://global/skin/inContentUI.css);
|
||||
|
||||
:root {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0 2em;
|
||||
}
|
||||
|
||||
#floatingBox {
|
||||
margin: 4em auto;
|
||||
max-width: 40em;
|
||||
min-width: 23em;
|
||||
padding: 1em 1.5em;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#successLogo {
|
||||
margin: 1em 2em;
|
||||
}
|
||||
|
||||
#loadingText {
|
||||
margin: 2em 6em;
|
||||
}
|
||||
|
||||
#progressBar {
|
||||
margin: 2em 10em;
|
||||
}
|
||||
|
||||
#uploadProgressBar{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#bottomRow {
|
||||
margin-top: 2em;
|
||||
padding: 0;
|
||||
text-align: end;
|
||||
}
|
||||
@@ -166,6 +166,7 @@ browser.jar:
|
||||
skin/classic/browser/syncProgress-toolbar-inverted@2x.png
|
||||
skin/classic/browser/syncProgress-toolbar-win7.png
|
||||
skin/classic/browser/syncProgress-toolbar-win7@2x.png
|
||||
skin/classic/browser/syncProgress.css
|
||||
|
||||
[extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar:
|
||||
% override chrome://browser/skin/page-livemarks.png chrome://browser/skin/feeds/feedIcon16.png
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
@import url(chrome://global/skin/inContentUI.css);
|
||||
|
||||
:root {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0 2em;
|
||||
}
|
||||
|
||||
#floatingBox {
|
||||
margin: 4em auto;
|
||||
max-width: 40em;
|
||||
min-width: 23em;
|
||||
padding: 1em 1.5em;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#successLogo {
|
||||
margin: 1em 2em;
|
||||
}
|
||||
|
||||
#loadingText {
|
||||
margin: 2em 6em;
|
||||
}
|
||||
|
||||
#progressBar {
|
||||
margin: 2em 10em;
|
||||
}
|
||||
|
||||
#uploadProgressBar{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#bottomRow {
|
||||
margin-top: 2em;
|
||||
padding: 0;
|
||||
text-align: end;
|
||||
}
|
||||
Reference in New Issue
Block a user