[Mypal] Add a configure flag to functionally disable personas at build time.
This commit is contained in:
parent
77dc488eeb
commit
385757801a
|
@ -263,7 +263,7 @@ var AddonsMgrListener = {
|
||||||
onDisabled: function(aAddon) this.onUninstalled(),
|
onDisabled: function(aAddon) this.onUninstalled(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef MOZ_PERSONAS
|
||||||
var LightWeightThemeWebInstaller = {
|
var LightWeightThemeWebInstaller = {
|
||||||
handleEvent: function (event) {
|
handleEvent: function (event) {
|
||||||
switch (event.type) {
|
switch (event.type) {
|
||||||
|
@ -534,3 +534,4 @@ var LightweightThemeListener = {
|
||||||
this.updateStyleSheet("url(" + themeData.headerURL + ")");
|
this.updateStyleSheet("url(" + themeData.headerURL + ")");
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
|
@ -1216,9 +1216,11 @@ var gBrowserInit = {
|
||||||
placesContext.addEventListener("popuphiding", updateEditUIVisibility, false);
|
placesContext.addEventListener("popuphiding", updateEditUIVisibility, false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef MOZ_PERSONAS
|
||||||
gBrowser.mPanelContainer.addEventListener("InstallBrowserTheme", LightWeightThemeWebInstaller, false, true);
|
gBrowser.mPanelContainer.addEventListener("InstallBrowserTheme", LightWeightThemeWebInstaller, false, true);
|
||||||
gBrowser.mPanelContainer.addEventListener("PreviewBrowserTheme", LightWeightThemeWebInstaller, false, true);
|
gBrowser.mPanelContainer.addEventListener("PreviewBrowserTheme", LightWeightThemeWebInstaller, false, true);
|
||||||
gBrowser.mPanelContainer.addEventListener("ResetBrowserThemePreview", LightWeightThemeWebInstaller, false, true);
|
gBrowser.mPanelContainer.addEventListener("ResetBrowserThemePreview", LightWeightThemeWebInstaller, false, true);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Bug 666808 - AeroPeek support for e10s
|
// Bug 666808 - AeroPeek support for e10s
|
||||||
if (!gMultiProcessBrowser) {
|
if (!gMultiProcessBrowser) {
|
||||||
|
|
|
@ -53,8 +53,10 @@
|
||||||
titlemodifier_privatebrowsing="&mainWindow.titlemodifier; &mainWindow.titlePrivateBrowsingSuffix;"
|
titlemodifier_privatebrowsing="&mainWindow.titlemodifier; &mainWindow.titlePrivateBrowsingSuffix;"
|
||||||
#endif
|
#endif
|
||||||
titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
|
titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
|
||||||
|
#ifdef MOZ_PERSONAS
|
||||||
lightweightthemes="true"
|
lightweightthemes="true"
|
||||||
lightweightthemesfooter="browser-bottombox"
|
lightweightthemesfooter="browser-bottombox"
|
||||||
|
#endif
|
||||||
windowtype="navigator:browser"
|
windowtype="navigator:browser"
|
||||||
macanimationtype="document"
|
macanimationtype="document"
|
||||||
screenX="4" screenY="4"
|
screenX="4" screenY="4"
|
||||||
|
|
|
@ -36,3 +36,16 @@ MOZ_ARG_DISABLE_BOOL(sync,
|
||||||
MOZ_SERVICES_SYNC=,
|
MOZ_SERVICES_SYNC=,
|
||||||
MOZ_SERVICES_SYNC=1)
|
MOZ_SERVICES_SYNC=1)
|
||||||
|
|
||||||
|
dnl ========================================================
|
||||||
|
dnl = Disable Lightweight Themes
|
||||||
|
dnl ========================================================
|
||||||
|
MOZ_ARG_DISABLE_BOOL(personas,
|
||||||
|
[ --disable-personas Disable lightweight theme support],
|
||||||
|
MOZ_PERSONAS=,
|
||||||
|
MOZ_PERSONAS=1)
|
||||||
|
|
||||||
|
if test -n "$MOZ_PERSONAS"; then
|
||||||
|
AC_DEFINE(MOZ_PERSONAS)
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(MOZ_PERSONAS)
|
|
@ -46,6 +46,9 @@ MOZ_PHOENIX=1
|
||||||
# Browser Feature: Status bar Component
|
# Browser Feature: Status bar Component
|
||||||
MOZ_BROWSER_STATUSBAR=1
|
MOZ_BROWSER_STATUSBAR=1
|
||||||
|
|
||||||
|
# Lightweight Themes
|
||||||
|
MOZ_PERSONAS=1
|
||||||
|
|
||||||
# Browser Feature: Profile Migration Component
|
# Browser Feature: Profile Migration Component
|
||||||
MOZ_PROFILE_MIGRATOR=
|
MOZ_PROFILE_MIGRATOR=
|
||||||
|
|
||||||
|
|
|
@ -311,6 +311,7 @@ def old_configure_options(*options):
|
||||||
# Below are configure flags used by Pale Moon
|
# Below are configure flags used by Pale Moon
|
||||||
'--disable-browser-statusbar',
|
'--disable-browser-statusbar',
|
||||||
'--disable-sync',
|
'--disable-sync',
|
||||||
|
'--disable-personas',
|
||||||
|
|
||||||
# Below are configure flags used by Basilisk
|
# Below are configure flags used by Basilisk
|
||||||
'--disable-webextensions',
|
'--disable-webextensions',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user