Reduce redundencies in Basilisk branding
|
|
@ -9,48 +9,5 @@ DIRS += ['content', 'locales']
|
||||||
DIST_SUBDIR = 'browser'
|
DIST_SUBDIR = 'browser'
|
||||||
export('DIST_SUBDIR')
|
export('DIST_SUBDIR')
|
||||||
|
|
||||||
JS_PREFERENCE_FILES += [
|
include('../shared/branding.mozbuild')
|
||||||
'pref/firefox-branding.js',
|
ApplicationBranding()
|
||||||
]
|
|
||||||
|
|
||||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
||||||
FINAL_TARGET_FILES['..'] += [
|
|
||||||
'basilisk.VisualElementsManifest.xml',
|
|
||||||
]
|
|
||||||
FINAL_TARGET_FILES.VisualElements += [
|
|
||||||
'VisualElements_150.png',
|
|
||||||
'VisualElements_70.png',
|
|
||||||
]
|
|
||||||
BRANDING_FILES += [
|
|
||||||
'appname.bmp',
|
|
||||||
'branding.nsi',
|
|
||||||
'document.ico',
|
|
||||||
'firefox.ico',
|
|
||||||
'newtab.ico',
|
|
||||||
'newwindow.ico',
|
|
||||||
'pbmode.ico',
|
|
||||||
'wizHeader.bmp',
|
|
||||||
'wizHeaderRTL.bmp',
|
|
||||||
'wizWatermark.bmp',
|
|
||||||
]
|
|
||||||
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
||||||
BRANDING_FILES += [
|
|
||||||
'background.png',
|
|
||||||
'disk.icns',
|
|
||||||
'document.icns',
|
|
||||||
'dsstore',
|
|
||||||
'firefox.icns',
|
|
||||||
]
|
|
||||||
elif 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
|
||||||
BRANDING_FILES += [
|
|
||||||
'default16.png',
|
|
||||||
'default32.png',
|
|
||||||
'default48.png',
|
|
||||||
'mozicon128.png',
|
|
||||||
]
|
|
||||||
FINAL_TARGET_FILES.icons += ['mozicon128.png']
|
|
||||||
FINAL_TARGET_FILES.chrome.icons.default += [
|
|
||||||
'default16.png',
|
|
||||||
'default32.png',
|
|
||||||
'default48.png',
|
|
||||||
]
|
|
||||||
|
|
@ -2,55 +2,43 @@
|
||||||
* 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/. */
|
||||||
|
|
||||||
pref("startup.homepage_override_url", "https://www.basilisk-browser.org/releasenotes.shtml");
|
#filter substitution
|
||||||
pref("startup.homepage_welcome_url", "http://www.basilisk-browser.org/firstrun/");
|
#filter emptyLines
|
||||||
|
|
||||||
|
// Set defines to construct URLs
|
||||||
|
#define BRANDING_BASEURL basilisk-browser.org
|
||||||
|
#define BRANDING_SITEURL www.@BRANDING_BASEURL@
|
||||||
|
#define BRANDING_RELNOTESPATH releasenotes.shtml
|
||||||
|
#define BRANDING_FIRSTRUNPATH firstrun/
|
||||||
|
#define BRANDING_APPUPDATEURL aus.@BRANDING_BASEURL@
|
||||||
|
#define BRANDING_APPUPDATEPATH ?application=%PRODUCT%&version=%VERSION%&arch=%BUILD_TARGET%&buildid=%BUILD_ID%&channel=%CHANNEL%
|
||||||
|
|
||||||
|
// Shared Branding Preferences
|
||||||
|
// XXX: These should REALLY go back to application preferences
|
||||||
|
#include ../../shared/preferences.inc
|
||||||
|
|
||||||
|
// Branding Specific Preferences
|
||||||
|
pref("startup.homepage_override_url", "https://@BRANDING_SITEURL@/@BRANDING_RELNOTESPATH@");
|
||||||
|
pref("startup.homepage_welcome_url", "http://@BRANDING_SITEURL@/@BRANDING_FIRSTRUNPATH@");
|
||||||
pref("startup.homepage_welcome_url.additional", "");
|
pref("startup.homepage_welcome_url.additional", "");
|
||||||
|
|
||||||
pref("app.update.url", "https://aus.basilisk-browser.org/?application=%PRODUCT%&version=%VERSION%&arch=%BUILD_TARGET%&buildid=%BUILD_ID%&channel=%CHANNEL%");
|
// Version release notes
|
||||||
// Interval: Time between checks for a new version (in seconds)
|
pref("app.releaseNotesURL", "http://@BRANDING_SITEURL@/@BRANDING_RELNOTESPATH@");
|
||||||
pref("app.update.interval", 86400); // 1 day
|
|
||||||
// The time interval between the downloading of mar file chunks in the
|
// Vendor home page
|
||||||
// background (in seconds)
|
pref("app.vendorURL", "http://@BRANDING_SITEURL@/");
|
||||||
// 0 means "download everything at once"
|
|
||||||
pref("app.update.download.backgroundInterval", 0);
|
pref("app.update.url", "https://@BRANDING_APPUPDATEURL@/@BRANDING_APPUPDATEPATH@");
|
||||||
// Give the user x seconds to react before showing the big UI. default=192 hours
|
|
||||||
pref("app.update.promptWaitTime", 691200);
|
|
||||||
// URL user can browse to manually if for some reason all update installation
|
// URL user can browse to manually if for some reason all update installation
|
||||||
// attempts fail.
|
// attempts fail.
|
||||||
pref("app.update.url.manual", "https://www.basilisk-browser.org/");
|
pref("app.update.url.manual", "https://@BRANDING_SITEURL@/");
|
||||||
// A default value for the "More information about this update" link
|
// A default value for the "More information about this update" link
|
||||||
// supplied in the "An update is available" page of the update wizard.
|
// supplied in the "An update is available" page of the update wizard.
|
||||||
pref("app.update.url.details", "https://www.basilisk-browser.org/releasenotes.shtml");
|
pref("app.update.url.details", "https://@BRANDING_SITEURL@/@BRANDING_RELNOTESPATH@");
|
||||||
|
|
||||||
// Switch Application Updates off for now
|
// Switch Application Updates off for now
|
||||||
pref("app.update.enabled", false);
|
pref("app.update.enabled", false);
|
||||||
|
|
||||||
// Version release notes
|
// Shared User Agent Overrides
|
||||||
pref("app.releaseNotesURL", "http://www.basilisk-browser.org/releasenotes.shtml");
|
#include ../../shared/uaoverrides.inc
|
||||||
// Vendor home page
|
|
||||||
pref("app.vendorURL", "http://www.basilisk-browser.org/");
|
|
||||||
|
|
||||||
// The number of days a binary is permitted to be old
|
|
||||||
// without checking for an update. This assumes that
|
|
||||||
// app.update.checkInstallTime is true.
|
|
||||||
pref("app.update.checkInstallTime.days", 14);
|
|
||||||
|
|
||||||
// Give the user x seconds to reboot before showing a badge on the hamburger
|
|
||||||
// button. default=immediately
|
|
||||||
pref("app.update.badgeWaitTime", 0);
|
|
||||||
|
|
||||||
// Number of usages of the web console or scratchpad.
|
|
||||||
// If this is less than 5, then pasting code into the web console or scratchpad is disabled
|
|
||||||
pref("devtools.selfxss.count", 100);
|
|
||||||
|
|
||||||
// Disable Google Safebrowsing by default. Without an API key, this won't work.
|
|
||||||
pref("browser.safebrowsing.phishing.enabled", false);
|
|
||||||
pref("browser.safebrowsing.malware.enabled", false);
|
|
||||||
pref("browser.safebrowsing.downloads.enabled", false);
|
|
||||||
pref("browser.safebrowsing.downloads.remote.enabled", false);
|
|
||||||
// Disable the UI controls for it as well for Basilisk-official.
|
|
||||||
pref("browser.safebrowsing.UI.enabled", false);
|
|
||||||
|
|
||||||
// FxA override
|
|
||||||
pref("general.useragent.override.accounts.firefox.com", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Goanna/4.0 Basilisk/55.0.0");
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,42 +5,37 @@
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
@template
|
@template
|
||||||
def FirefoxBranding():
|
def ApplicationBranding():
|
||||||
JS_PREFERENCE_FILES += [
|
JS_PREFERENCE_PP_FILES += [
|
||||||
'pref/firefox-branding.js',
|
'pref/firefox-branding.js',
|
||||||
]
|
]
|
||||||
|
|
||||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
||||||
FINAL_TARGET_FILES['..'] += [
|
FINAL_TARGET_FILES['..'] += [
|
||||||
'firefox.VisualElementsManifest.xml',
|
'basilisk.VisualElementsManifest.xml',
|
||||||
]
|
]
|
||||||
FINAL_TARGET_FILES.VisualElements += [
|
FINAL_TARGET_FILES.VisualElements += [
|
||||||
'VisualElements_150.png',
|
'VisualElements_150.png',
|
||||||
'VisualElements_70.png',
|
'VisualElements_70.png',
|
||||||
]
|
]
|
||||||
BRANDING_FILES += [
|
BRANDING_FILES += [
|
||||||
|
'../shared/newtab.ico',
|
||||||
|
'../shared/newwindow.ico',
|
||||||
|
'../shared/pbmode.ico',
|
||||||
'appname.bmp',
|
'appname.bmp',
|
||||||
'bgintro.bmp',
|
|
||||||
'branding.nsi',
|
'branding.nsi',
|
||||||
'clock.bmp',
|
|
||||||
'document.ico',
|
'document.ico',
|
||||||
'firefox.ico',
|
'firefox.ico',
|
||||||
'newtab.ico',
|
|
||||||
'newwindow.ico',
|
|
||||||
'particles.bmp',
|
|
||||||
'pbmode.ico',
|
|
||||||
'pencil-rtl.bmp',
|
|
||||||
'pencil.bmp',
|
|
||||||
'wizHeader.bmp',
|
'wizHeader.bmp',
|
||||||
'wizHeaderRTL.bmp',
|
'wizHeaderRTL.bmp',
|
||||||
'wizWatermark.bmp',
|
'wizWatermark.bmp',
|
||||||
]
|
]
|
||||||
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
||||||
BRANDING_FILES += [
|
BRANDING_FILES += [
|
||||||
'background.png',
|
'../shared/dsstore',
|
||||||
'disk.icns',
|
'disk.icns',
|
||||||
'document.icns',
|
'document.icns',
|
||||||
'dsstore',
|
'background.png',
|
||||||
'firefox.icns',
|
'firefox.icns',
|
||||||
]
|
]
|
||||||
elif 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
elif 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||||
|
|
@ -56,3 +51,6 @@ def FirefoxBranding():
|
||||||
'default32.png',
|
'default32.png',
|
||||||
'default48.png',
|
'default48.png',
|
||||||
]
|
]
|
||||||
|
DEFINES['MOZ_APP_VERSION'] = CONFIG['MOZ_APP_VERSION']
|
||||||
|
DEFINES['MOZ_BRANDING_DIRECTORY'] = CONFIG['MOZ_BRANDING_DIRECTORY']
|
||||||
|
DEFINES['MOZILLA_UAVERSION_U'] = CONFIG['MOZILLA_UAVERSION_U']
|
||||||
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
33
browser/branding/shared/preferences.inc
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
// Interval: Time between checks for a new version (in seconds)
|
||||||
|
pref("app.update.interval", 86400); // 1 day
|
||||||
|
|
||||||
|
// The time interval between the downloading of mar file chunks in the
|
||||||
|
// background (in seconds)
|
||||||
|
// 0 means "download everything at once"
|
||||||
|
pref("app.update.download.backgroundInterval", 0);
|
||||||
|
|
||||||
|
// Give the user x seconds to react before showing the big UI. default=192 hours
|
||||||
|
pref("app.update.promptWaitTime", 691200);
|
||||||
|
|
||||||
|
// The number of days a binary is permitted to be old
|
||||||
|
// without checking for an update. This assumes that
|
||||||
|
// app.update.checkInstallTime is true.
|
||||||
|
pref("app.update.checkInstallTime.days", 14);
|
||||||
|
|
||||||
|
// Give the user x seconds to reboot before showing a badge on the hamburger
|
||||||
|
// button. default=immediately
|
||||||
|
pref("app.update.badgeWaitTime", 0);
|
||||||
|
|
||||||
|
// Number of usages of the web console or scratchpad.
|
||||||
|
// If this is less than 5, then pasting code into the web console or scratchpad is disabled
|
||||||
|
pref("devtools.selfxss.count", 100);
|
||||||
|
|
||||||
|
// Disable Google Safebrowsing by default. Without an API key, this won't work.
|
||||||
|
pref("browser.safebrowsing.phishing.enabled", false);
|
||||||
|
pref("browser.safebrowsing.malware.enabled", false);
|
||||||
|
pref("browser.safebrowsing.downloads.enabled", false);
|
||||||
|
pref("browser.safebrowsing.downloads.remote.enabled", false);
|
||||||
|
|
||||||
|
// Disable the UI controls for it as well for Basilisk-official.
|
||||||
|
pref("browser.safebrowsing.UI.enabled", false);
|
||||||
|
|
||||||
38
browser/branding/shared/uaoverrides.inc
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
#define GUAO_PREF general.useragent.override
|
||||||
|
|
||||||
|
#define GRE_VERSION @MOZILLA_UAVERSION_U@
|
||||||
|
#define GRE_VERSION_SLICE Goanna/@GRE_VERSION@
|
||||||
|
#define GRE_DATE_SLICE Goanna/20170101
|
||||||
|
#define APP_SLICE Basilisk/@MOZ_APP_VERSION@
|
||||||
|
|
||||||
|
#define GK_VERSION 52.0
|
||||||
|
#define GK_SLICE Gecko/20100101
|
||||||
|
#define FX_SLICE Firefox/@GK_VERSION@
|
||||||
|
|
||||||
|
#ifdef XP_UNIX
|
||||||
|
#ifndef XP_MACOSX
|
||||||
|
#define OS_SLICE X11; Linux x86_64;
|
||||||
|
#else
|
||||||
|
#define OS_SLICE Macintosh; Intel Mac OS X 10.11;
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#define OS_SLICE Windows NT 6.1; WOW64;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// FxA override
|
||||||
|
pref("@GUAO_PREF@.accounts.firefox.com", "Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@");
|
||||||
|
|
||||||
|
// Required for domains that have proven unresponsive to requests from users
|
||||||
|
|
||||||
|
// The never-ending Facebook debacle...
|
||||||
|
|
||||||
|
// UA-Sniffing domains below are pending responses from their operators - temp workaround
|
||||||
|
|
||||||
|
// The following requires native mode. Or it blocks.. "too old firefox", breakage, etc.
|
||||||
|
|
||||||
|
// UA-Sniffing domains below have indicated no interest in supporting Pale Moon (BOO!)
|
||||||
|
|
||||||
|
// UA-sniffing domains that are "app/vendor-specific" and do not like Pale Moon
|
||||||
|
|
||||||
|
// The following domains do not like the Goanna slice
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 666 KiB |
|
Before Width: | Height: | Size: 121 KiB |
|
|
@ -9,5 +9,5 @@ DIRS += ['content', 'locales']
|
||||||
DIST_SUBDIR = 'browser'
|
DIST_SUBDIR = 'browser'
|
||||||
export('DIST_SUBDIR')
|
export('DIST_SUBDIR')
|
||||||
|
|
||||||
include('../branding-common.mozbuild')
|
include('../shared/branding.mozbuild')
|
||||||
FirefoxBranding()
|
ApplicationBranding()
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 121 KiB |
|
Before Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 121 KiB |
|
Before Width: | Height: | Size: 121 KiB |
|
|
@ -2,32 +2,39 @@
|
||||||
* 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/. */
|
||||||
|
|
||||||
|
#filter substitution
|
||||||
|
#filter emptyLines
|
||||||
|
|
||||||
|
// Set defines to construct URLs
|
||||||
|
#define BRANDING_BASEURL basilisk-browser.org
|
||||||
|
#define BRANDING_SITEURL www.@BRANDING_BASEURL@
|
||||||
|
|
||||||
|
// Shared Branding Preferences
|
||||||
|
// XXX: These should REALLY go back to application preferences
|
||||||
|
#include ../../shared/preferences.inc
|
||||||
|
|
||||||
|
// Branding Specific Preferences
|
||||||
pref("startup.homepage_override_url", "");
|
pref("startup.homepage_override_url", "");
|
||||||
pref("startup.homepage_welcome_url", "");
|
pref("startup.homepage_welcome_url", "");
|
||||||
pref("startup.homepage_welcome_url.additional", "");
|
pref("startup.homepage_welcome_url.additional", "");
|
||||||
// The time interval between checks for a new version (in seconds)
|
|
||||||
pref("app.update.interval", 86400); // 24 hours
|
// Version release notes
|
||||||
// The time interval between the downloading of mar file chunks in the
|
pref("app.releaseNotesURL", "about:blank");
|
||||||
// background (in seconds)
|
|
||||||
pref("app.update.download.backgroundInterval", 60);
|
// Vendor home page
|
||||||
// Give the user x seconds to react before showing the big UI. default=24 hours
|
pref("app.vendorURL", "about:");
|
||||||
pref("app.update.promptWaitTime", 86400);
|
|
||||||
|
pref("app.update.url", "");
|
||||||
|
|
||||||
// URL user can browse to manually if for some reason all update installation
|
// URL user can browse to manually if for some reason all update installation
|
||||||
// attempts fail.
|
// attempts fail.
|
||||||
pref("app.update.url.manual", "https://nightly.mozilla.org");
|
pref("app.update.url.manual", "about:");
|
||||||
// A default value for the "More information about this update" link
|
// A default value for the "More information about this update" link
|
||||||
// supplied in the "An update is available" page of the update wizard.
|
// supplied in the "An update is available" page of the update wizard.
|
||||||
pref("app.update.url.details", "https://nightly.mozilla.org");
|
pref("app.update.url.details", "about:");
|
||||||
|
|
||||||
// The number of days a binary is permitted to be old
|
// Switch Application Updates off for unofficial branding
|
||||||
// without checking for an update. This assumes that
|
pref("app.update.enabled", false);
|
||||||
// app.update.checkInstallTime is true.
|
|
||||||
pref("app.update.checkInstallTime.days", 2);
|
|
||||||
|
|
||||||
// Give the user x seconds to reboot before showing a badge on the hamburger
|
// Shared User Agent Overrides
|
||||||
// button. default=immediately
|
#include ../../shared/uaoverrides.inc
|
||||||
pref("app.update.badgeWaitTime", 0);
|
|
||||||
|
|
||||||
// Number of usages of the web console or scratchpad.
|
|
||||||
// If this is less than 5, then pasting code into the web console or scratchpad is disabled
|
|
||||||
pref("devtools.selfxss.count", 0);
|
|
||||||
|
|
|
||||||
|
|
@ -842,7 +842,10 @@ fi
|
||||||
AC_DEFINE_UNQUOTED(MOZILLA_VERSION,"$MOZILLA_VERSION")
|
AC_DEFINE_UNQUOTED(MOZILLA_VERSION,"$MOZILLA_VERSION")
|
||||||
AC_DEFINE_UNQUOTED(MOZILLA_VERSION_U,$MOZILLA_VERSION)
|
AC_DEFINE_UNQUOTED(MOZILLA_VERSION_U,$MOZILLA_VERSION)
|
||||||
AC_DEFINE_UNQUOTED(MOZILLA_UAVERSION,"$MOZILLA_UAVERSION")
|
AC_DEFINE_UNQUOTED(MOZILLA_UAVERSION,"$MOZILLA_UAVERSION")
|
||||||
|
AC_DEFINE_UNQUOTED(MOZILLA_UAVERSION_U,$MOZILLA_UAVERSION)
|
||||||
AC_SUBST(MOZILLA_SYMBOLVERSION)
|
AC_SUBST(MOZILLA_SYMBOLVERSION)
|
||||||
|
AC_SUBST(MOZILLA_UAVERSION)
|
||||||
|
AC_SUBST(MOZILLA_UAVERSION_U)
|
||||||
|
|
||||||
MOZ_DOING_LTO(lto_is_enabled)
|
MOZ_DOING_LTO(lto_is_enabled)
|
||||||
|
|
||||||
|
|
|
||||||