user-agent-desktop
user-agent-desktop copied to clipboard
Disable Firefox Sync
browser/app/profile/firefox.js
Default value for MOZ_SERVICES_SYNC is set to False here: browser/moz.configure https://github.com/cliqz-oss/browser-f/blob/master/mozilla-release/browser/moz.configure#L9 => imply_option('MOZ_SERVICES_SYNC', False)
Look for: #ifdef MOZ_SERVICES_SYNC and %ifdef MOZ_SERVICES_SYNC, found following files (in mozilla-release folder):
modules/libpref/init/all.jstoolkit/profile/content/profileDowngrade.xhtmltoolkit/modules/AppConstants.jsmbrowser/app/profile/firefox.jsbrowser/installer/package-manifest.inbrowser/themes/osx/jar.mnbrowser/themes/windows/jar.mnbrowser/modules/PageActions.jsmbrowser/themes/linux/jar.mnbrowser/locales/jar.mnbrowser/components/customizableui/CustomizableWidgets.jsmbrowser/components/customizableui/CustomizableUI.jsmbrowser/components/customizableui/content/panelUI.inc.xhtmlbrowser/components/BrowserGlue.jsmbrowser/base/jar.mnbrowser/base/content/browser-menubar.incbrowser/base/content/nsContextMenu.jsbrowser/base/content/browser.xhtmlbrowser/base/content/browser-places.jsbrowser/base/content/browser-doctype.incbrowser/base/content/tabbrowser.jsbrowser/base/content/browser-sidebar.jsbrowser/base/content/browser.jsbrowser/base/content/browser-pageActions.js
browser/base/content/browser.xhtml
https://github.com/cliqz-oss/browser-f/blob/master/mozilla-release/browser/base/content/browser.xhtml#L1165
browser/components/customizableui/content/panelUI.inc.xhtml
https://github.com/cliqz-oss/browser-f/blob/master/mozilla-release/browser/components/customizableui/content/panelUI.inc.xhtml#L235
browser/themes/osx/preferences/preferences.css
https://github.com/ghostery/user-agent-desktop/blob/8f59bd745702f7c76f97bc3d67472577824ac644/browser/themes/osx/preferences/preferences.css#L73
browser/themes/linux/preferences/preferences.css
https://github.com/ghostery/user-agent-desktop/blob/8f59bd745702f7c76f97bc3d67472577824ac644/browser/themes/linux/preferences/preferences.css#L35
This looks like a hard disable. At the moment we do a soft disable via pref: https://github.com/ghostery/user-agent-desktop/blob/204e9a987886c4d41ed34acc68f6d608ff2e5b48/brands/ghostery/branding/pref/firefox-branding.js#L115
This has the advantage is that advanced users who want to use Firefox sync can re-enable it (requires a restart). Disabling at build time probably excludes sync components entirely. We should decide if we want to go with a hard or soft disable.
Let's park this one on a roadmap
i would love to have an option to re-enable this i run my own sync-server, with my own data-store.