Bug 1227361 - Remove checks for MOZ_SERVICES_SYNC from browser/. r=markh

This commit is contained in:
Sebastian Hengst 2015-11-24 19:31:16 +01:00
parent f460ef1711
commit 5528382da8
21 changed files with 3 additions and 100 deletions

View File

@ -1231,7 +1231,6 @@ pref("browser.taskbar.lists.tasks.enabled", true);
pref("browser.taskbar.lists.refreshInSeconds", 120); pref("browser.taskbar.lists.refreshInSeconds", 120);
#endif #endif
#ifdef MOZ_SERVICES_SYNC
// The sync engines to use. // The sync engines to use.
pref("services.sync.registerEngines", "Bookmarks,Form,History,Password,Prefs,Tab,Addons"); pref("services.sync.registerEngines", "Bookmarks,Form,History,Password,Prefs,Tab,Addons");
// Preferences to be synced by default // Preferences to be synced by default
@ -1301,7 +1300,6 @@ pref("services.sync.prefs.sync.security.tls.version.max", true);
pref("services.sync.prefs.sync.signon.rememberSignons", true); pref("services.sync.prefs.sync.signon.rememberSignons", true);
pref("services.sync.prefs.sync.spellchecker.dictionary", true); pref("services.sync.prefs.sync.spellchecker.dictionary", true);
pref("services.sync.prefs.sync.xpinstall.whitelist.required", true); pref("services.sync.prefs.sync.xpinstall.whitelist.required", true);
#endif
// Developer edition preferences // Developer edition preferences
#ifdef MOZ_DEV_EDITION #ifdef MOZ_DEV_EDITION

View File

@ -365,13 +365,11 @@
key="key_sanitize" key="key_sanitize"
command="Tools:Sanitize"/> command="Tools:Sanitize"/>
<menuseparator id="sanitizeSeparator"/> <menuseparator id="sanitizeSeparator"/>
#ifdef MOZ_SERVICES_SYNC
<menuitem id="sync-tabs-menuitem" <menuitem id="sync-tabs-menuitem"
class="syncTabsMenuItem" class="syncTabsMenuItem"
label="&syncTabsMenu2.label;" label="&syncTabsMenu2.label;"
oncommand="BrowserOpenSyncTabs();" oncommand="BrowserOpenSyncTabs();"
disabled="true"/> disabled="true"/>
#endif
<menuitem id="historyRestoreLastSession" <menuitem id="historyRestoreLastSession"
label="&historyRestoreLastSession.label;" label="&historyRestoreLastSession.label;"
command="Browser:RestoreLastSession"/> command="Browser:RestoreLastSession"/>
@ -486,12 +484,10 @@
accesskey="&toolsMenu.accesskey;" accesskey="&toolsMenu.accesskey;"
onpopupshowing="mirrorShow(this)"> onpopupshowing="mirrorShow(this)">
<menupopup id="menu_ToolsPopup" <menupopup id="menu_ToolsPopup"
#ifdef MOZ_SERVICES_SYNC
# We have to use setTimeout() here to avoid a flickering menu bar when opening # We have to use setTimeout() here to avoid a flickering menu bar when opening
# the Tools menu, see bug 970769. This can be removed once we got rid of the # the Tools menu, see bug 970769. This can be removed once we got rid of the
# event loop spinning in Weave.Status._authManager. # event loop spinning in Weave.Status._authManager.
onpopupshowing="setTimeout(() => gSyncUI.updateUI());" onpopupshowing="setTimeout(() => gSyncUI.updateUI());"
#endif
> >
<menuitem id="menu_openDownloads" <menuitem id="menu_openDownloads"
label="&downloads.label;" label="&downloads.label;"
@ -513,7 +509,6 @@
accesskey = "&loopMenuItem.accesskey;" accesskey = "&loopMenuItem.accesskey;"
oncommand="LoopUI.togglePanel();"/> oncommand="LoopUI.togglePanel();"/>
#ifdef MOZ_SERVICES_SYNC
<!-- only one of sync-setup, sync-syncnowitem or sync-reauthitem will be showing at once --> <!-- only one of sync-setup, sync-syncnowitem or sync-reauthitem will be showing at once -->
<menuitem id="sync-setup" <menuitem id="sync-setup"
label="&syncSignIn.label;" label="&syncSignIn.label;"
@ -530,7 +525,6 @@
accesskey="&syncReAuthItem.accesskey;" accesskey="&syncReAuthItem.accesskey;"
observes="sync-reauth-state" observes="sync-reauth-state"
oncommand="gSyncUI.openSignInAgainPage('menubar');"/> oncommand="gSyncUI.openSignInAgainPage('menubar');"/>
#endif
<menuseparator id="devToolsSeparator"/> <menuseparator id="devToolsSeparator"/>
<menu id="webDeveloperMenu" <menu id="webDeveloperMenu"
label="&webDeveloperMenu.label;" label="&webDeveloperMenu.label;"

View File

@ -726,8 +726,6 @@ HistoryMenu.prototype = {
}, },
toggleTabsFromOtherComputers: function PHM_toggleTabsFromOtherComputers() { 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 // Enable/disable the Tabs From Other Computers menu. Some of the menus handled
// by HistoryMenu do not have this menuitem. // by HistoryMenu do not have this menuitem.
let menuitem = this._rootElt.getElementsByClassName("syncTabsMenuItem")[0]; let menuitem = this._rootElt.getElementsByClassName("syncTabsMenuItem")[0];
@ -742,7 +740,6 @@ HistoryMenu.prototype = {
let enabled = PlacesUIUtils.shouldEnableTabsFromOtherComputersMenuitem(); let enabled = PlacesUIUtils.shouldEnableTabsFromOtherComputersMenuitem();
menuitem.setAttribute("disabled", !enabled); menuitem.setAttribute("disabled", !enabled);
menuitem.setAttribute("hidden", false); menuitem.setAttribute("hidden", false);
#endif
}, },
_onPopupShowing: function HM__onPopupShowing(aEvent) { _onPopupShowing: function HM__onPopupShowing(aEvent) {

View File

@ -179,11 +179,9 @@
<broadcaster id="singleFeedMenuitemState" disabled="true"/> <broadcaster id="singleFeedMenuitemState" disabled="true"/>
<broadcaster id="multipleFeedsMenuState" hidden="true"/> <broadcaster id="multipleFeedsMenuState" hidden="true"/>
<broadcaster id="tabviewGroupsNumber" groups="1"/> <broadcaster id="tabviewGroupsNumber" groups="1"/>
#ifdef MOZ_SERVICES_SYNC
<broadcaster id="sync-setup-state"/> <broadcaster id="sync-setup-state"/>
<broadcaster id="sync-syncnow-state" hidden="true"/> <broadcaster id="sync-syncnow-state" hidden="true"/>
<broadcaster id="sync-reauth-state" hidden="true"/> <broadcaster id="sync-reauth-state" hidden="true"/>
#endif
<broadcaster id="workOfflineMenuitemState"/> <broadcaster id="workOfflineMenuitemState"/>
<broadcaster id="socialSidebarBroadcaster" hidden="true"/> <broadcaster id="socialSidebarBroadcaster" hidden="true"/>

View File

@ -165,10 +165,8 @@ XPCOMUtils.defineLazyGetter(this, "gCustomizeMode", function() {
return new scope.CustomizeMode(window); return new scope.CustomizeMode(window);
}); });
#ifdef MOZ_SERVICES_SYNC
XPCOMUtils.defineLazyModuleGetter(this, "Weave", XPCOMUtils.defineLazyModuleGetter(this, "Weave",
"resource://services-sync/main.js"); "resource://services-sync/main.js");
#endif
XPCOMUtils.defineLazyGetter(this, "PopupNotifications", function () { XPCOMUtils.defineLazyGetter(this, "PopupNotifications", function () {
let tmp = {}; let tmp = {};
@ -282,6 +280,7 @@ var gInitialPages = [
#include browser-safebrowsing.js #include browser-safebrowsing.js
#include browser-sidebar.js #include browser-sidebar.js
#include browser-social.js #include browser-social.js
#include browser-syncui.js
#include browser-tabview.js #include browser-tabview.js
#include browser-thumbnails.js #include browser-thumbnails.js
#include browser-trackingprotection.js #include browser-trackingprotection.js
@ -290,10 +289,6 @@ var gInitialPages = [
#include browser-data-submission-info-bar.js #include browser-data-submission-info-bar.js
#endif #endif
#ifdef MOZ_SERVICES_SYNC
#include browser-syncui.js
#endif
#include browser-fxaccounts.js #include browser-fxaccounts.js
XPCOMUtils.defineLazyGetter(this, "Win7Features", function () { XPCOMUtils.defineLazyGetter(this, "Win7Features", function () {
@ -1354,11 +1349,9 @@ var gBrowserInit = {
FullScreen.init(); FullScreen.init();
#ifdef MOZ_SERVICES_SYNC
// initialize the sync UI // initialize the sync UI
gSyncUI.init(); gSyncUI.init();
gFxAccounts.init(); gFxAccounts.init();
#endif
#ifdef MOZ_DATA_REPORTING #ifdef MOZ_DATA_REPORTING
gDataNotificationInfoBar.init(); gDataNotificationInfoBar.init();
@ -1500,9 +1493,7 @@ var gBrowserInit = {
FullScreen.uninit(); FullScreen.uninit();
#ifdef MOZ_SERVICES_SYNC
gFxAccounts.uninit(); gFxAccounts.uninit();
#endif
Services.obs.removeObserver(gPluginHandler.NPAPIPluginCrashed, "plugin-crashed"); Services.obs.removeObserver(gPluginHandler.NPAPIPluginCrashed, "plugin-crashed");
@ -1659,10 +1650,8 @@ var gBrowserInit = {
// initialize the private browsing UI // initialize the private browsing UI
gPrivateBrowsingUI.init(); gPrivateBrowsingUI.init();
#ifdef MOZ_SERVICES_SYNC
// initialize the sync UI // initialize the sync UI
gSyncUI.init(); gSyncUI.init();
#endif
#ifdef E10S_TESTING_ONLY #ifdef E10S_TESTING_ONLY
gRemoteTabsUI.init(); gRemoteTabsUI.init();
@ -6842,11 +6831,9 @@ function isTabEmpty(aTab) {
return true; return true;
} }
#ifdef MOZ_SERVICES_SYNC
function BrowserOpenSyncTabs() { function BrowserOpenSyncTabs() {
switchToTabHavingURI("about:sync-tabs", true); switchToTabHavingURI("about:sync-tabs", true);
} }
#endif
/** /**
* Format a URL * Format a URL

View File

@ -1054,12 +1054,10 @@
label="&fullScreenCmd.label;" label="&fullScreenCmd.label;"
tooltip="dynamic-shortcut-tooltip"/> tooltip="dynamic-shortcut-tooltip"/>
#ifdef MOZ_SERVICES_SYNC
<toolbarbutton id="sync-button" <toolbarbutton id="sync-button"
class="toolbarbutton-1 chromeclass-toolbar-additional" class="toolbarbutton-1 chromeclass-toolbar-additional"
label="&syncToolbarButton.label;" label="&syncToolbarButton.label;"
oncommand="gSyncUI.handleToolbarButton()"/> oncommand="gSyncUI.handleToolbarButton()"/>
#endif
<toolbarbutton id="tabview-button" class="toolbarbutton-1 chromeclass-toolbar-additional" <toolbarbutton id="tabview-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
label="&tabGroupsButton.label;" label="&tabGroupsButton.label;"

View File

@ -120,7 +120,6 @@ browser.jar:
content/browser/pageinfo/feeds.xml (content/pageinfo/feeds.xml) content/browser/pageinfo/feeds.xml (content/pageinfo/feeds.xml)
content/browser/pageinfo/permissions.js (content/pageinfo/permissions.js) content/browser/pageinfo/permissions.js (content/pageinfo/permissions.js)
content/browser/pageinfo/security.js (content/pageinfo/security.js) content/browser/pageinfo/security.js (content/pageinfo/security.js)
#ifdef MOZ_SERVICES_SYNC
content/browser/sync/aboutSyncTabs.xul (content/sync/aboutSyncTabs.xul) content/browser/sync/aboutSyncTabs.xul (content/sync/aboutSyncTabs.xul)
* content/browser/sync/aboutSyncTabs.js (content/sync/aboutSyncTabs.js) * content/browser/sync/aboutSyncTabs.js (content/sync/aboutSyncTabs.js)
content/browser/sync/aboutSyncTabs.css (content/sync/aboutSyncTabs.css) content/browser/sync/aboutSyncTabs.css (content/sync/aboutSyncTabs.css)
@ -136,7 +135,6 @@ browser.jar:
* content/browser/sync/customize.xul (content/sync/customize.xul) * content/browser/sync/customize.xul (content/sync/customize.xul)
content/browser/sync/customize.js (content/sync/customize.js) content/browser/sync/customize.js (content/sync/customize.js)
content/browser/sync/customize.css (content/sync/customize.css) content/browser/sync/customize.css (content/sync/customize.css)
#endif
content/browser/safeMode.css (content/safeMode.css) content/browser/safeMode.css (content/safeMode.css)
content/browser/safeMode.js (content/safeMode.js) content/browser/safeMode.js (content/safeMode.js)
content/browser/safeMode.xul (content/safeMode.xul) content/browser/safeMode.xul (content/safeMode.xul)

View File

@ -79,10 +79,8 @@ static RedirEntry kRedirMap[] = {
nsIAboutModule::ALLOW_SCRIPT }, nsIAboutModule::ALLOW_SCRIPT },
{ "welcomeback", "chrome://browser/content/aboutWelcomeBack.xhtml", { "welcomeback", "chrome://browser/content/aboutWelcomeBack.xhtml",
nsIAboutModule::ALLOW_SCRIPT }, nsIAboutModule::ALLOW_SCRIPT },
#ifdef MOZ_SERVICES_SYNC
{ "sync-tabs", "chrome://browser/content/sync/aboutSyncTabs.xul", { "sync-tabs", "chrome://browser/content/sync/aboutSyncTabs.xul",
nsIAboutModule::ALLOW_SCRIPT }, nsIAboutModule::ALLOW_SCRIPT },
#endif
{ "home", "chrome://browser/content/abouthome/aboutHome.xhtml", { "home", "chrome://browser/content/abouthome/aboutHome.xhtml",
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT | nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
nsIAboutModule::URI_MUST_LOAD_IN_CHILD | nsIAboutModule::URI_MUST_LOAD_IN_CHILD |

View File

@ -102,9 +102,7 @@ static const mozilla::Module::ContractIDEntry kBrowserContracts[] = {
{ NS_ABOUT_MODULE_CONTRACTID_PREFIX "robots", &kNS_BROWSER_ABOUT_REDIRECTOR_CID }, { NS_ABOUT_MODULE_CONTRACTID_PREFIX "robots", &kNS_BROWSER_ABOUT_REDIRECTOR_CID },
{ NS_ABOUT_MODULE_CONTRACTID_PREFIX "sessionrestore", &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 }, { 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-tabs", &kNS_BROWSER_ABOUT_REDIRECTOR_CID },
#endif
{ NS_ABOUT_MODULE_CONTRACTID_PREFIX "home", &kNS_BROWSER_ABOUT_REDIRECTOR_CID }, { 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 "newtab", &kNS_BROWSER_ABOUT_REDIRECTOR_CID },
{ NS_ABOUT_MODULE_CONTRACTID_PREFIX "remote-newtab", &kNS_BROWSER_ABOUT_REDIRECTOR_CID }, { NS_ABOUT_MODULE_CONTRACTID_PREFIX "remote-newtab", &kNS_BROWSER_ABOUT_REDIRECTOR_CID },

View File

@ -242,7 +242,6 @@ const CustomizableWidgets = [
recentlyClosedWindows.removeChild(recentlyClosedWindows.firstChild); recentlyClosedWindows.removeChild(recentlyClosedWindows.firstChild);
} }
#ifdef MOZ_SERVICES_SYNC
let tabsFromOtherComputers = doc.getElementById("sync-tabs-menuitem2"); let tabsFromOtherComputers = doc.getElementById("sync-tabs-menuitem2");
if (PlacesUIUtils.shouldShowTabsFromOtherComputersMenuitem()) { if (PlacesUIUtils.shouldShowTabsFromOtherComputersMenuitem()) {
tabsFromOtherComputers.removeAttribute("hidden"); tabsFromOtherComputers.removeAttribute("hidden");
@ -255,7 +254,6 @@ const CustomizableWidgets = [
} else { } else {
tabsFromOtherComputers.setAttribute("disabled", true); tabsFromOtherComputers.setAttribute("disabled", true);
} }
#endif
let utils = RecentlyClosedTabsAndWindowsMenuUtils; let utils = RecentlyClosedTabsAndWindowsMenuUtils;
let tabsFragment = utils.getTabsFragment(doc.defaultView, "toolbarbutton", true, let tabsFragment = utils.getTabsFragment(doc.defaultView, "toolbarbutton", true,

View File

@ -81,13 +81,11 @@
label="&appMenuHistory.clearRecent.label;" label="&appMenuHistory.clearRecent.label;"
class="subviewbutton" class="subviewbutton"
command="Tools:Sanitize"/> command="Tools:Sanitize"/>
#ifdef MOZ_SERVICES_SYNC
<toolbarbutton id="sync-tabs-menuitem2" <toolbarbutton id="sync-tabs-menuitem2"
class="syncTabsMenuItem subviewbutton" class="syncTabsMenuItem subviewbutton"
label="&syncTabsMenu2.label;" label="&syncTabsMenu2.label;"
oncommand="BrowserOpenSyncTabs();" oncommand="BrowserOpenSyncTabs();"
disabled="true"/> disabled="true"/>
#endif
<toolbarbutton id="appMenuRestoreLastSession" <toolbarbutton id="appMenuRestoreLastSession"
label="&appMenuHistory.restoreSession.label;" label="&appMenuHistory.restoreSession.label;"
class="subviewbutton" class="subviewbutton"

View File

@ -265,7 +265,6 @@ BrowserGlue.prototype = {
Services.prefs.savePrefFile(null); Services.prefs.savePrefFile(null);
}, },
#ifdef MOZ_SERVICES_SYNC
_setSyncAutoconnectDelay: function BG__setSyncAutoconnectDelay() { _setSyncAutoconnectDelay: function BG__setSyncAutoconnectDelay() {
// Assume that a non-zero value for services.sync.autoconnectDelay should override // Assume that a non-zero value for services.sync.autoconnectDelay should override
if (Services.prefs.prefHasUserValue("services.sync.autoconnectDelay")) { if (Services.prefs.prefHasUserValue("services.sync.autoconnectDelay")) {
@ -287,7 +286,6 @@ BrowserGlue.prototype = {
Cu.import("resource://services-sync/main.js"); Cu.import("resource://services-sync/main.js");
Weave.Service.scheduler.delayedAutoConnect(delay); Weave.Service.scheduler.delayedAutoConnect(delay);
}, },
#endif
// nsIObserver implementation // nsIObserver implementation
observe: function BG_observe(subject, topic, data) { observe: function BG_observe(subject, topic, data) {
@ -332,14 +330,12 @@ BrowserGlue.prototype = {
this._setPrefToSaveSession(); this._setPrefToSaveSession();
break; break;
#endif #endif
#ifdef MOZ_SERVICES_SYNC
case "weave:service:ready": case "weave:service:ready":
this._setSyncAutoconnectDelay(); this._setSyncAutoconnectDelay();
break; break;
case "weave:engine:clients:display-uri": case "weave:engine:clients:display-uri":
this._onDisplaySyncURI(subject); this._onDisplaySyncURI(subject);
break; break;
#endif
case "session-save": case "session-save":
this._setPrefToSaveSession(true); this._setPrefToSaveSession(true);
subject.QueryInterface(Ci.nsISupportsPRBool); subject.QueryInterface(Ci.nsISupportsPRBool);
@ -617,10 +613,8 @@ BrowserGlue.prototype = {
os.addObserver(this, "browser-lastwindow-close-requested", false); os.addObserver(this, "browser-lastwindow-close-requested", false);
os.addObserver(this, "browser-lastwindow-close-granted", false); os.addObserver(this, "browser-lastwindow-close-granted", false);
#endif #endif
#ifdef MOZ_SERVICES_SYNC
os.addObserver(this, "weave:service:ready", false); os.addObserver(this, "weave:service:ready", false);
os.addObserver(this, "weave:engine:clients:display-uri", false); os.addObserver(this, "weave:engine:clients:display-uri", false);
#endif
os.addObserver(this, "session-save", false); os.addObserver(this, "session-save", false);
os.addObserver(this, "places-init-complete", false); os.addObserver(this, "places-init-complete", false);
this._isPlacesInitObserver = true; this._isPlacesInitObserver = true;
@ -668,10 +662,8 @@ BrowserGlue.prototype = {
os.removeObserver(this, "browser-lastwindow-close-requested"); os.removeObserver(this, "browser-lastwindow-close-requested");
os.removeObserver(this, "browser-lastwindow-close-granted"); os.removeObserver(this, "browser-lastwindow-close-granted");
#endif #endif
#ifdef MOZ_SERVICES_SYNC
os.removeObserver(this, "weave:service:ready"); os.removeObserver(this, "weave:service:ready");
os.removeObserver(this, "weave:engine:clients:display-uri"); os.removeObserver(this, "weave:engine:clients:display-uri");
#endif
os.removeObserver(this, "session-save"); os.removeObserver(this, "session-save");
if (this._bookmarksBackupIdleTime) { if (this._bookmarksBackupIdleTime) {
this._idleService.removeIdleObserver(this, this._bookmarksBackupIdleTime); this._idleService.removeIdleObserver(this, this._bookmarksBackupIdleTime);
@ -2502,7 +2494,6 @@ BrowserGlue.prototype = {
chromeWindow.openPreferences(...args); chromeWindow.openPreferences(...args);
}, },
#ifdef MOZ_SERVICES_SYNC
/** /**
* Called as an observer when Sync's "display URI" notification is fired. * Called as an observer when Sync's "display URI" notification is fired.
* *
@ -2524,7 +2515,6 @@ BrowserGlue.prototype = {
Cu.reportError("Error displaying tab received by Sync: " + ex); Cu.reportError("Error displaying tab received by Sync: " + ex);
} }
}, },
#endif
_handleFlashHang: function() { _handleFlashHang: function() {
++this._flashHangCount; ++this._flashHangCount;

View File

@ -149,7 +149,6 @@
<label class="category-name" flex="1">&paneSecurity.title;</label> <label class="category-name" flex="1">&paneSecurity.title;</label>
</richlistitem> </richlistitem>
#ifdef MOZ_SERVICES_SYNC
<richlistitem id="category-sync" <richlistitem id="category-sync"
class="category" class="category"
value="paneSync" value="paneSync"
@ -159,7 +158,6 @@
<image class="category-icon"/> <image class="category-icon"/>
<label class="category-name" flex="1">&paneSync.title;</label> <label class="category-name" flex="1">&paneSync.title;</label>
</richlistitem> </richlistitem>
#endif
<richlistitem id="category-advanced" <richlistitem id="category-advanced"
class="category" class="category"
@ -181,9 +179,7 @@
#include applications.xul #include applications.xul
#include content.xul #include content.xul
#include security.xul #include security.xul
#ifdef MOZ_SERVICES_SYNC
#include sync.xul #include sync.xul
#endif
</prefpane> </prefpane>
</vbox> </vbox>

View File

@ -514,10 +514,8 @@
@RESPATH@/browser/components/SelfSupportService.manifest @RESPATH@/browser/components/SelfSupportService.manifest
@RESPATH@/browser/components/SelfSupportService.js @RESPATH@/browser/components/SelfSupportService.js
#endif #endif
#ifdef MOZ_SERVICES_SYNC
@RESPATH@/components/SyncComponents.manifest @RESPATH@/components/SyncComponents.manifest
@RESPATH@/components/Weave.js @RESPATH@/components/Weave.js
#endif
@RESPATH@/components/CaptivePortalDetectComponents.manifest @RESPATH@/components/CaptivePortalDetectComponents.manifest
@RESPATH@/components/captivedetect.js @RESPATH@/components/captivedetect.js
@RESPATH@/components/servicesComponents.manifest @RESPATH@/components/servicesComponents.manifest
@ -718,9 +716,7 @@
#ifdef MOZ_SERVICES_NOTIFICATIONS #ifdef MOZ_SERVICES_NOTIFICATIONS
@RESPATH@/defaults/pref/services-notifications.js @RESPATH@/defaults/pref/services-notifications.js
#endif #endif
#ifdef MOZ_SERVICES_SYNC
@RESPATH@/defaults/pref/services-sync.js @RESPATH@/defaults/pref/services-sync.js
#endif
; [Layout Engine Resources] ; [Layout Engine Resources]
; Style Sheets, Graphics and other Resources used by the layout engine. ; Style Sheets, Graphics and other Resources used by the layout engine.

View File

@ -19,10 +19,8 @@
#endif #endif
locale/browser/aboutSessionRestore.dtd (%chrome/browser/aboutSessionRestore.dtd) locale/browser/aboutSessionRestore.dtd (%chrome/browser/aboutSessionRestore.dtd)
locale/browser/aboutTabCrashed.dtd (%chrome/browser/aboutTabCrashed.dtd) locale/browser/aboutTabCrashed.dtd (%chrome/browser/aboutTabCrashed.dtd)
#ifdef MOZ_SERVICES_SYNC
locale/browser/syncCustomize.dtd (%chrome/browser/syncCustomize.dtd) locale/browser/syncCustomize.dtd (%chrome/browser/syncCustomize.dtd)
locale/browser/aboutSyncTabs.dtd (%chrome/browser/aboutSyncTabs.dtd) locale/browser/aboutSyncTabs.dtd (%chrome/browser/aboutSyncTabs.dtd)
#endif
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/baseMenuOverlay.dtd (%chrome/browser/baseMenuOverlay.dtd)
locale/browser/browser.properties (%chrome/browser/browser.properties) locale/browser/browser.properties (%chrome/browser/browser.properties)
@ -82,13 +80,10 @@
locale/browser/preferences/preferences.properties (%chrome/browser/preferences/preferences.properties) locale/browser/preferences/preferences.properties (%chrome/browser/preferences/preferences.properties)
locale/browser/preferences/privacy.dtd (%chrome/browser/preferences/privacy.dtd) locale/browser/preferences/privacy.dtd (%chrome/browser/preferences/privacy.dtd)
locale/browser/preferences/security.dtd (%chrome/browser/preferences/security.dtd) locale/browser/preferences/security.dtd (%chrome/browser/preferences/security.dtd)
#ifdef MOZ_SERVICES_SYNC
locale/browser/preferences/sync.dtd (%chrome/browser/preferences/sync.dtd) locale/browser/preferences/sync.dtd (%chrome/browser/preferences/sync.dtd)
#endif
locale/browser/preferences/tabs.dtd (%chrome/browser/preferences/tabs.dtd) locale/browser/preferences/tabs.dtd (%chrome/browser/preferences/tabs.dtd)
locale/browser/preferences/search.dtd (%chrome/browser/preferences/search.dtd) locale/browser/preferences/search.dtd (%chrome/browser/preferences/search.dtd)
locale/browser/preferences/translation.dtd (%chrome/browser/preferences/translation.dtd) locale/browser/preferences/translation.dtd (%chrome/browser/preferences/translation.dtd)
#ifdef MOZ_SERVICES_SYNC
locale/browser/syncBrand.dtd (%chrome/browser/syncBrand.dtd) locale/browser/syncBrand.dtd (%chrome/browser/syncBrand.dtd)
locale/browser/syncSetup.dtd (%chrome/browser/syncSetup.dtd) locale/browser/syncSetup.dtd (%chrome/browser/syncSetup.dtd)
locale/browser/syncSetup.properties (%chrome/browser/syncSetup.properties) locale/browser/syncSetup.properties (%chrome/browser/syncSetup.properties)
@ -96,7 +91,6 @@
locale/browser/syncKey.dtd (%chrome/browser/syncKey.dtd) locale/browser/syncKey.dtd (%chrome/browser/syncKey.dtd)
locale/browser/syncQuota.dtd (%chrome/browser/syncQuota.dtd) locale/browser/syncQuota.dtd (%chrome/browser/syncQuota.dtd)
locale/browser/syncQuota.properties (%chrome/browser/syncQuota.properties) locale/browser/syncQuota.properties (%chrome/browser/syncQuota.properties)
#endif
% resource search-plugins chrome://browser/locale/searchplugins/ % resource search-plugins chrome://browser/locale/searchplugins/
#if BUILD_FASTER #if BUILD_FASTER
locale/browser/searchplugins/list.txt (%searchplugins/list.txt) locale/browser/searchplugins/list.txt (%searchplugins/list.txt)

View File

@ -8,9 +8,7 @@ browser.jar:
#include ../shared/jar.inc.mn #include ../shared/jar.inc.mn
skin/classic/browser/sanitizeDialog.css skin/classic/browser/sanitizeDialog.css
skin/classic/browser/aboutSessionRestore-window-icon.png skin/classic/browser/aboutSessionRestore-window-icon.png
#ifdef MOZ_SERVICES_SYNC
skin/classic/browser/aboutSyncTabs.css skin/classic/browser/aboutSyncTabs.css
#endif
skin/classic/browser/actionicon-tab.png skin/classic/browser/actionicon-tab.png
* skin/classic/browser/browser.css * skin/classic/browser/browser.css
* skin/classic/browser/devedition.css * skin/classic/browser/devedition.css
@ -95,10 +93,8 @@ browser.jar:
skin/classic/browser/preferences/alwaysAsk.png (preferences/alwaysAsk.png) skin/classic/browser/preferences/alwaysAsk.png (preferences/alwaysAsk.png)
skin/classic/browser/preferences/mail.png (preferences/mail.png) skin/classic/browser/preferences/mail.png (preferences/mail.png)
skin/classic/browser/preferences/Options.png (preferences/Options.png) skin/classic/browser/preferences/Options.png (preferences/Options.png)
#ifdef MOZ_SERVICES_SYNC
skin/classic/browser/preferences/Options-sync.png (preferences/Options-sync.png) skin/classic/browser/preferences/Options-sync.png (preferences/Options-sync.png)
#endif skin/classic/browser/preferences/preferences.css (preferences/preferences.css)
* skin/classic/browser/preferences/preferences.css (preferences/preferences.css)
* skin/classic/browser/preferences/in-content/preferences.css (preferences/in-content/preferences.css) * skin/classic/browser/preferences/in-content/preferences.css (preferences/in-content/preferences.css)
* skin/classic/browser/preferences/in-content/dialog.css (preferences/in-content/dialog.css) * skin/classic/browser/preferences/in-content/dialog.css (preferences/in-content/dialog.css)
skin/classic/browser/preferences/applications.css (preferences/applications.css) skin/classic/browser/preferences/applications.css (preferences/applications.css)
@ -136,7 +132,6 @@ browser.jar:
skin/classic/browser/usercontext/work.svg (../shared/usercontext/work.svg) skin/classic/browser/usercontext/work.svg (../shared/usercontext/work.svg)
skin/classic/browser/usercontext/banking.svg (../shared/usercontext/banking.svg) skin/classic/browser/usercontext/banking.svg (../shared/usercontext/banking.svg)
skin/classic/browser/usercontext/shopping.svg (../shared/usercontext/shopping.svg) skin/classic/browser/usercontext/shopping.svg (../shared/usercontext/shopping.svg)
#ifdef MOZ_SERVICES_SYNC
skin/classic/browser/sync-16.png skin/classic/browser/sync-16.png
skin/classic/browser/sync-32.png skin/classic/browser/sync-32.png
skin/classic/browser/sync-bg.png skin/classic/browser/sync-bg.png
@ -155,7 +150,6 @@ browser.jar:
skin/classic/browser/syncQuota.css skin/classic/browser/syncQuota.css
skin/classic/browser/syncProgress-horizontalbar.png skin/classic/browser/syncProgress-horizontalbar.png
skin/classic/browser/syncProgress-horizontalbar@2x.png skin/classic/browser/syncProgress-horizontalbar@2x.png
#endif
#ifdef E10S_TESTING_ONLY #ifdef E10S_TESTING_ONLY
skin/classic/browser/e10s-64@2x.png (../shared/e10s-64@2x.png) skin/classic/browser/e10s-64@2x.png (../shared/e10s-64@2x.png)
#endif #endif

View File

@ -1,11 +1,9 @@
%if 0
/* /*
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- # -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# This Source Code Form is subject to the terms of the Mozilla Public # 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 # 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/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
%endif
/* Global Styles */ /* Global Styles */
#BrowserPreferences radio[pane] { #BrowserPreferences radio[pane] {
@ -48,11 +46,9 @@ radio[pane=paneAdvanced] {
-moz-image-region: rect(0px, 224px, 32px, 192px) -moz-image-region: rect(0px, 224px, 32px, 192px)
} }
%ifdef MOZ_SERVICES_SYNC
radio[pane=paneSync] { radio[pane=paneSync] {
list-style-image: url("chrome://browser/skin/preferences/Options-sync.png") !important; list-style-image: url("chrome://browser/skin/preferences/Options-sync.png") !important;
} }
%endif
/* These lines should be removed as part of fixing bug 1140495 */ /* These lines should be removed as part of fixing bug 1140495 */
label.small { label.small {
@ -165,7 +161,6 @@ label.small {
margin-top: 0; margin-top: 0;
} }
%ifdef MOZ_SERVICES_SYNC
/* Sync Pane */ /* Sync Pane */
#syncDesc { #syncDesc {
@ -210,5 +205,3 @@ label.small {
from { opacity: 0; } from { opacity: 0; }
to { opacity: 1; } to { opacity: 1; }
} }
%endif

View File

@ -7,9 +7,7 @@ browser.jar:
#include ../shared/jar.inc.mn #include ../shared/jar.inc.mn
skin/classic/browser/sanitizeDialog.css skin/classic/browser/sanitizeDialog.css
skin/classic/browser/aboutSessionRestore-window-icon.png skin/classic/browser/aboutSessionRestore-window-icon.png
#ifdef MOZ_SERVICES_SYNC
skin/classic/browser/aboutSyncTabs.css skin/classic/browser/aboutSyncTabs.css
#endif
skin/classic/browser/actionicon-tab.png skin/classic/browser/actionicon-tab.png
skin/classic/browser/actionicon-tab@2x.png skin/classic/browser/actionicon-tab@2x.png
* skin/classic/browser/browser.css * skin/classic/browser/browser.css
@ -150,9 +148,7 @@ browser.jar:
skin/classic/browser/preferences/alwaysAsk.png (preferences/alwaysAsk.png) skin/classic/browser/preferences/alwaysAsk.png (preferences/alwaysAsk.png)
skin/classic/browser/preferences/application.png (preferences/application.png) skin/classic/browser/preferences/application.png (preferences/application.png)
skin/classic/browser/preferences/Options.png (preferences/Options.png) skin/classic/browser/preferences/Options.png (preferences/Options.png)
#ifdef MOZ_SERVICES_SYNC
skin/classic/browser/preferences/Options-sync.png (preferences/Options-sync.png) skin/classic/browser/preferences/Options-sync.png (preferences/Options-sync.png)
#endif
skin/classic/browser/preferences/saveFile.png (preferences/saveFile.png) skin/classic/browser/preferences/saveFile.png (preferences/saveFile.png)
* skin/classic/browser/preferences/preferences.css (preferences/preferences.css) * skin/classic/browser/preferences/preferences.css (preferences/preferences.css)
* skin/classic/browser/preferences/in-content/preferences.css (preferences/in-content/preferences.css) * skin/classic/browser/preferences/in-content/preferences.css (preferences/in-content/preferences.css)
@ -216,7 +212,6 @@ browser.jar:
skin/classic/browser/usercontext/work.svg (../shared/usercontext/work.svg) skin/classic/browser/usercontext/work.svg (../shared/usercontext/work.svg)
skin/classic/browser/usercontext/banking.svg (../shared/usercontext/banking.svg) skin/classic/browser/usercontext/banking.svg (../shared/usercontext/banking.svg)
skin/classic/browser/usercontext/shopping.svg (../shared/usercontext/shopping.svg) skin/classic/browser/usercontext/shopping.svg (../shared/usercontext/shopping.svg)
#ifdef MOZ_SERVICES_SYNC
skin/classic/browser/sync-16.png skin/classic/browser/sync-16.png
skin/classic/browser/sync-32.png skin/classic/browser/sync-32.png
skin/classic/browser/sync-bg.png skin/classic/browser/sync-bg.png
@ -237,7 +232,6 @@ browser.jar:
skin/classic/browser/syncProgress-toolbar@2x.png skin/classic/browser/syncProgress-toolbar@2x.png
skin/classic/browser/syncProgress-toolbar-inverted.png skin/classic/browser/syncProgress-toolbar-inverted.png
skin/classic/browser/syncProgress-toolbar-inverted@2x.png skin/classic/browser/syncProgress-toolbar-inverted@2x.png
#endif
skin/classic/browser/Toolbar-background-noise.png (Toolbar-background-noise.png) 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/lion/toolbarbutton-dropmarker.png (toolbarbutton-dropmarker-lion.png)
skin/classic/browser/toolbarbutton-dropmarker@2x.png (toolbarbutton-dropmarker-lion@2x.png) skin/classic/browser/toolbarbutton-dropmarker@2x.png (toolbarbutton-dropmarker-lion@2x.png)

View File

@ -68,13 +68,11 @@ radio[pane=paneAdvanced] {
-moz-image-region: rect(0px, 224px, 32px, 192px); -moz-image-region: rect(0px, 224px, 32px, 192px);
} }
%ifdef MOZ_SERVICES_SYNC
/* ----- SYNC BUTTON ----- */ /* ----- SYNC BUTTON ----- */
radio[pane=paneSync] { radio[pane=paneSync] {
list-style-image: url("chrome://browser/skin/preferences/Options-sync.png"); list-style-image: url("chrome://browser/skin/preferences/Options-sync.png");
} }
%endif
/* These lines should be removed as part of fixing bug 1140495 */ /* These lines should be removed as part of fixing bug 1140495 */
label.small { label.small {
@ -222,7 +220,6 @@ html|a.inline-link:-moz-focusring {
} }
%ifdef MOZ_SERVICES_SYNC
/* ----- SYNC PANE ----- */ /* ----- SYNC PANE ----- */
#syncDesc { #syncDesc {
@ -267,5 +264,3 @@ html|a.inline-link:-moz-focusring {
from { opacity: 0; } from { opacity: 0; }
to { opacity: 1; } to { opacity: 1; }
} }
%endif

View File

@ -7,9 +7,7 @@ browser.jar:
#include ../shared/jar.inc.mn #include ../shared/jar.inc.mn
skin/classic/browser/sanitizeDialog.css skin/classic/browser/sanitizeDialog.css
skin/classic/browser/aboutSessionRestore-window-icon.png skin/classic/browser/aboutSessionRestore-window-icon.png
#ifdef MOZ_SERVICES_SYNC
skin/classic/browser/aboutSyncTabs.css skin/classic/browser/aboutSyncTabs.css
#endif
skin/classic/browser/actionicon-tab.png skin/classic/browser/actionicon-tab.png
skin/classic/browser/actionicon-tab@2x.png skin/classic/browser/actionicon-tab@2x.png
skin/classic/browser/actionicon-tab-XPVista7.png skin/classic/browser/actionicon-tab-XPVista7.png
@ -167,12 +165,10 @@ browser.jar:
skin/classic/browser/preferences/mail-XP.png (preferences/mail-XP.png) skin/classic/browser/preferences/mail-XP.png (preferences/mail-XP.png)
skin/classic/browser/preferences/Options.png (preferences/Options.png) skin/classic/browser/preferences/Options.png (preferences/Options.png)
skin/classic/browser/preferences/Options-XP.png (preferences/Options-XP.png) skin/classic/browser/preferences/Options-XP.png (preferences/Options-XP.png)
#ifdef MOZ_SERVICES_SYNC
skin/classic/browser/preferences/Options-sync.png (preferences/Options-sync.png) skin/classic/browser/preferences/Options-sync.png (preferences/Options-sync.png)
#endif
skin/classic/browser/preferences/saveFile.png (preferences/saveFile.png) skin/classic/browser/preferences/saveFile.png (preferences/saveFile.png)
skin/classic/browser/preferences/saveFile-XP.png (preferences/saveFile-XP.png) skin/classic/browser/preferences/saveFile-XP.png (preferences/saveFile-XP.png)
* skin/classic/browser/preferences/preferences.css (preferences/preferences.css) skin/classic/browser/preferences/preferences.css (preferences/preferences.css)
* skin/classic/browser/preferences/in-content/preferences.css (preferences/in-content/preferences.css) * skin/classic/browser/preferences/in-content/preferences.css (preferences/in-content/preferences.css)
* skin/classic/browser/preferences/in-content/dialog.css (preferences/in-content/dialog.css) * skin/classic/browser/preferences/in-content/dialog.css (preferences/in-content/dialog.css)
skin/classic/browser/preferences/applications.css (preferences/applications.css) skin/classic/browser/preferences/applications.css (preferences/applications.css)
@ -230,7 +226,6 @@ browser.jar:
skin/classic/browser/usercontext/work.svg (../shared/usercontext/work.svg) skin/classic/browser/usercontext/work.svg (../shared/usercontext/work.svg)
skin/classic/browser/usercontext/banking.svg (../shared/usercontext/banking.svg) skin/classic/browser/usercontext/banking.svg (../shared/usercontext/banking.svg)
skin/classic/browser/usercontext/shopping.svg (../shared/usercontext/shopping.svg) skin/classic/browser/usercontext/shopping.svg (../shared/usercontext/shopping.svg)
#ifdef MOZ_SERVICES_SYNC
skin/classic/browser/sync-16.png skin/classic/browser/sync-16.png
skin/classic/browser/sync-32.png skin/classic/browser/sync-32.png
skin/classic/browser/sync-128.png skin/classic/browser/sync-128.png
@ -257,7 +252,6 @@ browser.jar:
skin/classic/browser/syncProgress-toolbar-inverted@2x.png skin/classic/browser/syncProgress-toolbar-inverted@2x.png
skin/classic/browser/syncProgress-toolbar-XPVista7.png skin/classic/browser/syncProgress-toolbar-XPVista7.png
skin/classic/browser/syncProgress-toolbar-XPVista7@2x.png skin/classic/browser/syncProgress-toolbar-XPVista7@2x.png
#endif
#ifdef E10S_TESTING_ONLY #ifdef E10S_TESTING_ONLY
skin/classic/browser/e10s-64@2x.png (../shared/e10s-64@2x.png) skin/classic/browser/e10s-64@2x.png (../shared/e10s-64@2x.png)
#endif #endif

View File

@ -43,11 +43,9 @@ radio[pane=paneAdvanced] {
-moz-image-region: rect(0, 224px, 32px, 192px); -moz-image-region: rect(0, 224px, 32px, 192px);
} }
%ifdef MOZ_SERVICES_SYNC
radio[pane=paneSync] { radio[pane=paneSync] {
list-style-image: url("chrome://browser/skin/preferences/Options-sync.png") !important; list-style-image: url("chrome://browser/skin/preferences/Options-sync.png") !important;
} }
%endif
/* These lines should be removed as part of fixing bug 1140495 */ /* These lines should be removed as part of fixing bug 1140495 */
label.small { label.small {
@ -148,7 +146,6 @@ label.small {
padding-bottom: 4px; padding-bottom: 4px;
} }
%ifdef MOZ_SERVICES_SYNC
/* Sync Pane */ /* Sync Pane */
#syncDesc { #syncDesc {
@ -197,5 +194,3 @@ label.small {
from { opacity: 0; } from { opacity: 0; }
to { opacity: 1; } to { opacity: 1; }
} }
%endif