Browse Source

[Navigator] Branding prefs

custom-2020
Matt A. Tobin 2 years ago committed by Roy Tam
parent
commit
3935bd96c1
  1. 2
      navigator/app/defaults/moz.build
  2. 0
      navigator/app/defaults/pref/application.js
  3. 18
      navigator/app/defaults/pref/appshell-prefs.inc.js
  4. 19
      navigator/app/defaults/pref/navigator-prefs.inc.js
  5. 2
      navigator/app/defaults/pref/secpriv-prefs.inc.js
  6. 14
      navigator/base/content/navigator.js
  7. 12
      navigator/base/locale/region.properties
  8. 2
      navigator/branding/official/jar.mn
  9. 22
      navigator/branding/official/locale/brand.properties
  10. 8
      navigator/branding/official/moz.build
  11. 85
      navigator/branding/official/pref/application-branding.js
  12. 79
      navigator/branding/official/pref/uaoverrides.inc
  13. 13
      navigator/branding/unofficial/locale/brand.properties
  14. 2
      navigator/branding/unstable/jar.mn
  15. 8
      navigator/branding/unstable/moz.build
  16. 4
      navigator/comm/locale/region.properties

2
navigator/app/defaults/moz.build

@ -8,7 +8,7 @@ JS_PREFERENCE_FILES += [
]
JS_PREFERENCE_PP_FILES += [
'pref/application-prefs.js',
'pref/application.js',
]
FINAL_TARGET_FILES.defaults.profile += [

0
navigator/app/defaults/pref/application-prefs.js → navigator/app/defaults/pref/application.js

18
navigator/app/defaults/pref/appshell-prefs.inc.js

@ -19,10 +19,10 @@
pref("app.releaseNotesURL", "chrome://branding/locale/brand.properties");
pref("app.vendorURL", "chrome://branding/locale/brand.properties");
pref("startup.homepage_override_url","chrome://navigator-region/locale/region.properties");
pref("startup.homepage_override_url","chrome://branding/locale/brand.properties");
// Base URL for web-based support pages.
pref("app.support.baseURL", "http://www.seamonkey-project.org/doc/");
pref("app.support.baseURL", "about:blank");
// App-specific update preferences
@ -30,19 +30,19 @@ pref("app.support.baseURL", "http://www.seamonkey-project.org/doc/");
pref("app.update.enabled", true);
// This preference allows automatic download and install to take place.
pref("app.update.auto", true);
pref("app.update.auto", false);
// If set to true, the Update Service will present no UI for any event.
pref("app.update.silent", false);
// Update service URL:
pref("app.update.url", "https://aus2-community.mozilla.org/update/3/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%SYSTEM_CAPABILITIES%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/update.xml");
pref("app.update.url", "about:blank");
// URL user can browse to manually if for some reason all update installation
// attempts fail.
pref("app.update.url.manual", "http://www.seamonkey-project.org/");
pref("app.update.url.manual", "about:blank");
// A default value for the "More information about this update" link
// supplied in the "An update is available" page of the update wizard.
pref("app.update.url.details", "chrome://communicator-region/locale/region.properties");
pref("app.update.url.details", "about:blank");
// User-settable override to app.update.url for testing purposes.
//pref("app.update.url.override", "");
@ -95,13 +95,7 @@ pref("app.update.interval", 86400);
// The minimum delay in seconds for the timer to fire.
// default=2 minutes
pref("app.update.timerMinimumDelay", 120);
#ifdef RELEASE_OR_BETA
// Give the user x seconds to react before showing the big UI. default=8 days
pref("app.update.promptWaitTime", 691200);
#else
// For nightly and aurora builds, before showing the big UI, default=12 hrs
pref("app.update.promptWaitTime", 43200);
#endif
// Show the Update Checking/Ready UI when the user was idle for x seconds
pref("app.update.idletime", 60);

19
navigator/app/defaults/pref/navigator-prefs.inc.js

@ -24,7 +24,7 @@ pref("browser.urlbar.historyEnabled", true);
// 0 = blank, 1 = home (browser.startup.homepage), 2 = last visited page, 3 = resume previous browser session
pref("browser.startup.page", 1);
pref("browser.startup.homepage", "chrome://navigator-region/locale/region.properties");
pref("browser.startup.homepage", "chrome://branding/locale/brand.properties");
pref("browser.startup.homepage.count", 1);
pref("browser.warnOnQuit", true);
@ -43,7 +43,7 @@ pref("browser.dom.window.console.enabled", false);
pref("browser.findbar.enabled", true);
// search engines URL
pref("browser.search.searchEnginesURL", "http://addons.palemoon.org/search-plugins/");
pref("browser.search.searchEnginesURL", "about:blank");
// pointer to the default engine name
pref("browser.search.defaultenginename", "chrome://communicator-region/locale/region.properties");
@ -200,9 +200,6 @@ pref("browser.link.open_newwindow", 3);
// 2: don't divert window.open with features
pref("browser.link.open_newwindow.restriction", 2);
// Translation service
pref("browser.translation.service", "chrome://navigator-region/locale/region.properties");
pref("browser.translation.serviceDomain", "chrome://navigator-region/locale/region.properties");
pref("browser.validate.html.service", "chrome://navigator-region/locale/region.properties");
// 0 goes back
@ -323,7 +320,7 @@ pref("browser.taskbar.previews.max", 20);
pref("browser.taskbar.previews.cachetime", 5);
#endif
pref("browser.throbber.url","chrome://navigator-region/locale/region.properties");
pref("browser.throbber.url","chrome://branding/locale/brand.properties");
// Show XUL error pages instead of alerts for errors
pref("browser.xul.error_pages.enabled", true);
@ -344,18 +341,12 @@ pref("browser.backspace_action", 2);
#endif
// FAQ URLs
pref("browser.geolocation.warning.infoURL", "http://www.seamonkey-project.org/doc/2.0/geolocation");
pref("browser.geolocation.warning.infoURL", "about:blank");
pref("browser.rights.version", 1);
pref("browser.rights.1.shown", false);
pref("browser.rights.1.shown", true);
#ifdef DEBUG
// Don't show the about:rights notification in debug builds.
pref("browser.rights.override", true);
#elifndef OFFICIAL_BUILD
// Don't show the about:rights notification in non-official builds.
pref("browser.rights.override", true);
#endif
pref("browser.formfill.expire_days", 180);

2
navigator/app/defaults/pref/secpriv-prefs.inc.js

@ -80,5 +80,5 @@ pref("geo.provider.ms-windows-location", false);
pref("geo.provider.use_gpsd", false);
#endif
pref("geo.wifi.uri", "https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY%");
pref("geo.wifi.uri", "http://ip-api.com/json/?fields=lat,lon,status,message");

14
navigator/base/content/navigator.js

@ -816,20 +816,6 @@ function Shutdown()
window.browserContentListener.close();
}
function Translate()
{
var service = GetLocalizedStringPref("browser.translation.service");
var serviceDomain = GetLocalizedStringPref("browser.translation.serviceDomain");
var targetURI = getWebNavigation().currentURI.spec;
// if we're already viewing a translated page, then just reload
if (targetURI.indexOf(serviceDomain) >= 0)
BrowserReload();
else {
loadURI(encodeURI(service) + encodeURIComponent(targetURI));
}
}
function GetTypePermFromId(aId)
{
// Get type and action from splitting id, first is type, second is action.

12
navigator/base/locale/region.properties

@ -7,18 +7,6 @@
# all.js
#
#ifdef MOZ_OFFICIAL_BRANDING
browser.startup.homepage=http://binaryoutcast.com/projects/borealis/
browser.throbber.url=http://binaryoutcast.com/projects/borealis/
startup.homepage_override_url=http://binaryoutcast.com/projects/borealis/
#else
browser.startup.homepage=about:
browser.throbber.url=about:
startup.homepage_override_url=about:
#endif
browser.translation.service=http://translate.google.com/translate?prev=/language_tools&u=
browser.translation.serviceDomain=translate.google.com
browser.validate.html.service=http://validator.w3.org/check?charset=%28detect+automatically%29&doctype=Inline&uri=
# This is the default set of web based feed handlers shown in the reader

2
navigator/branding/official/jar.mn

@ -16,4 +16,4 @@ comm.jar:
en-US.jar:
% locale branding en-US %locale/en-US/branding/
locale/en-US/branding/brand.dtd (locale/brand.dtd)
locale/en-US/branding/brand.properties (locale/brand.properties)
* locale/en-US/branding/brand.properties (locale/brand.properties)

22
navigator/branding/official/locale/brand.properties

@ -2,13 +2,25 @@
# 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/.
#filter substitution
#define BINOC_URL binaryoutcast.com
#define BINOC_PROJECT projects/@MOZ_APP_NAME@
#define AM_DOMAIN borealis-addons.binaryoutcast.com
brandFullName=Borealis Navigator
brandShortName=Borealis
brandShorterName=Borealis
vendorShortName=Binary Outcast
sidebarName=Sidebar
extensions.getMoreThemesURL=https://addons.binaryoutcast.com/borealis/themes/
extensions.getPersonasURL=https://addons.binaryoutcast.com/borealis/themes/
spellchecker.dictionaries.download.url=https://addons.binaryoutcast.com/borealis/dictionaries/
app.releaseNotesURL=https://binaryoutcast.com/projects/borealis/
app.vendorURL=https://binaryoutcast.com/
extensions.getMoreThemesURL=https://@AM_DOMAIN@/@MOZ_APP_NAME@/themes/
extensions.getPersonasURL=https://@AM_DOMAIN@/@MOZ_APP_NAME@/themes/
spellchecker.dictionaries.download.url=https://@AM_DOMAIN@/@MOZ_APP_NAME@/dictionaries/
app.releaseNotesURL=https://@BINOC_URL@/@BINOC_PROJECT@/
app.vendorURL=https://@BINOC_URL@/
browser.startup.homepage=https://@BINOC_URL@/@BINOC_PROJECT@/
startup.homepage_override_url=https://@BINOC_URL@/@BINOC_PROJECT@/release-notes/
browser.throbber.url=https://@BINOC_URL@/@BINOC_PROJECT@/

8
navigator/branding/official/moz.build

@ -7,6 +7,8 @@ JAR_MANIFESTS += ['jar.mn']
BRANDING_FILES += ['license.txt']
JS_PREFERENCE_PP_FILES += ['pref/application-branding.js']
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
BRANDING_FILES += [
'icons/windows/borealis.ico',
@ -39,3 +41,9 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] in ('gtk2', 'gtk3'):
'icons/gtk/document.png',
'icons/gtk/main-window.png',
]
DEFINES['MOZ_APP_NAME'] = CONFIG['MOZ_APP_NAME']
DEFINES['MOZ_APP_VERSION'] = CONFIG['MOZ_APP_VERSION']
DEFINES['MOZ_BRANDING_DIRECTORY'] = CONFIG['MOZ_BRANDING_DIRECTORY']
DEFINES['MOZILLA_UAVERSION_U'] = CONFIG['MOZILLA_UAVERSION_U']
DEFINES['MOZILLA_COMPATVERSION_U'] = "52.9"

85
navigator/branding/official/pref/application-branding.js

@ -0,0 +1,85 @@
#filter substitution
#define BINOC_URL binaryoutcast.com
#define BINOC_PROJECT projects/@MOZ_APP_NAME@
#define BRANDING_APPUPDATEPATH ?component=aus&application=%PRODUCT%&schema=2&version=%VERSION%&arch=%BUILD_TARGET%&flavor=%BUILD_SPECIAL%&toolkit=%WIDGET_TOOLKIT%&buildid=%BUILD_ID%&channel=%CHANNEL%
// Base URL for web-based support pages.
pref("app.support.baseURL", "https://@BINOC_URL@/@BINOC_PROJECT@/support/");
// Update service URL:
/*
%PRODUCT%
%VERSION%
%BUILD_ID%
%BUILD_TARGET%
%LOCALE%
%CHANNEL%
%OS_VERSION%
*/
pref("app.update.url", "https://@BINOC_URL@/@BRANDING_APPUPDATEPATH@");
// URL user can browse to manually if for some reason all update installation
// attempts fail.
pref("app.update.url.manual", "https://@BINOC_URL@/@BINOC_PROJECT@/download/");
// A default value for the "More information about this update" link
// supplied in the "An update is available" page of the update wizard.
pref("app.update.url.details", "https://@BINOC_URL@/@BINOC_PROJECT@/release-notes/");
pref("browser.throbber.url","https://@BINOC_URL@/@BINOC_PROJECT@/");
// Preferences for AMO integration
#define AM_DOMAIN borealis-addons.binaryoutcast.com
#define AM_AUS_ARGS reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%&currentAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%
// Preferences for AMO integration
pref("extensions.getAddons.cache.enabled", false);
pref("extensions.getAddons.maxResults", 10);
pref("extensions.getAddons.get.url", "https://@AM_DOMAIN@/?component=integration&type=internal&request=get&addonguid=%IDS%&os=%OS%&version=%VERSION%");
pref("extensions.getAddons.getWithPerformance.url", "https://@AM_DOMAIN@/?component=integration&type=internal&request=get&addonguid=%IDS%&os=%OS%&version=%VERSION%");
pref("extensions.getAddons.search.browseURL", "http://@AM_DOMAIN@/search/?terms=%TERMS%");
pref("extensions.getAddons.search.url", "https://@AM_DOMAIN@/?component=integration&type=internal&request=search&q=%TERMS%&locale=%LOCALE%&os=%OS%&version=%VERSION%");
pref("extensions.webservice.discoverURL", "http://@AM_DOMAIN@/?component=discover");
pref("extensions.getAddons.recommended.url", "https://@AM_DOMAIN@/?component=integration&type=internal&request=recommended&locale=%LOCALE%&os=%OS%");
pref("extensions.getAddons.browseAddons", "http://@AM_DOMAIN@/");
pref("extensions.getAddons.recommended.browseURL", "http://@AM_DOMAIN@/?component=integration&type=external&request=recommended");
// Blocklist preferences
pref("extensions.blocklist.enabled", true);
pref("extensions.blocklist.interval", 86400);
// %APP_ID%/%APP_VERSION%/%PRODUCT%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/
pref("extensions.blocklist.url", "https://@BINOC_URL@/?component=blocklist&id=%APP_ID%&channel=%CHANNEL%");
pref("extensions.blocklist.detailsURL", "https://addons.mozilla.org/%LOCALE%/%APP%/blocked/");
pref("extensions.blocklist.itemURL", "https://blocklist.addons.mozilla.org/%LOCALE%/%APP%/blocked/%blockID%");
// Symmetric (can be overridden by individual extensions) update preferences.
// e.g.
// extensions.{GUID}.update.enabled
// extensions.{GUID}.update.url
// .. etc ..
//
pref("extensions.update.enabled", true);
pref("extensions.update.url", "http://@AM_DOMAIN@/?component=aus&@AM_AUS_ARGS@");
pref("extensions.update.interval", 86400); // Check for updates to Extensions and
// Themes every day
pref("xpinstall.whitelist.add", "borealis-addons.binaryoutcast.org,addons.binaryoutcast.com,addons.thunderbird.net");
pref("xpinstall.whitelist.required", false);
// Allow installing XPI add-ons by direct URL requests (no referrer)
pref("xpinstall.whitelist.directRequest", true);
// Allow installing XPI add-ons from file referrers (chrome/file)
pref("xpinstall.whitelist.fileRequest", true);
pref("extensions.install.requireBuiltInCerts", false);
// Only allow installation of extensions from https, chrome or file schemes
pref("extensions.install.requireSecureOrigin", false);
pref("browser.search.searchEnginesURL", "https://@AM_DOMAIN@/search-plugins/");
pref("geo.wifi.uri", "https://pro.ip-api.com/json/?fields=lat,lon,status,message&key=Xo7pBl68uXPzeOs");
pref("browser.geolocation.warning.infoURL", "https://@BINOC_URL@/@BINOC_PROJECT@/support/");
pref("toolkit.mozprotocol.url", "https://@BINOC_URL@/");
#include uaoverrides.inc

79
navigator/branding/official/pref/uaoverrides.inc

@ -0,0 +1,79 @@
// ===| Site Specific User Agent Overrides |===================================
#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 PM_SLICE Borealis/@MOZ_APP_VERSION@
#define GK_VERSION @MOZILLA_COMPATVERSION_U@
#define GK_SLICE Gecko/20100101
#define FX_SLICE Firefox/@GK_VERSION@
// %OS_SLICE% macro is resolved at runtime, see MoonchildProductions/UXP/issues/1473
// Special-case AMO
// We send the native UA slice now, since they no longer offer any compatible extensions for us.
// This will result in an "only with Firefox" message which suits us fine, because it's the truth.
pref("@GUAO_PREF@.addons.mozilla.org","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
// Required for domains that are unresponsive to requests from users (or likely to be)
pref("@GUAO_PREF@.live.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Borealis)");
pref("@GUAO_PREF@.msn.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Borealis)");
pref("@GUAO_PREF@.bing.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Borealis)");
pref("@GUAO_PREF@.outlook.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Borealis)");
pref("@GUAO_PREF@.web.de","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Borealis)");
pref("@GUAO_PREF@.aol.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Borealis)");
pref("@GUAO_PREF@.calendar.yahoo.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Borealis)");
pref("@GUAO_PREF@.google.com","Mozilla/5.0 (%OS_SLICE% rv:71.0) @GK_SLICE@ Firefox/71.0 @PM_SLICE@");
pref("@GUAO_PREF@.googlevideos.com","Mozilla/5.0 (%OS_SLICE% rv:38.9) @GK_SLICE@ @GRE_VERSION_SLICE@ Firefox/38.9 @PM_SLICE@");
pref("@GUAO_PREF@.gstatic.com","Mozilla/5.0 (%OS_SLICE% rv:71.0) @GK_SLICE@ Firefox/71.0 @PM_SLICE@");
pref("@GUAO_PREF@.yahoo.com","Mozilla/5.0 (%OS_SLICE% rv:99.9) @GK_SLICE@ Firefox/99.9 (Borealis)");
pref("@GUAO_PREF@.youtube.com","Mozilla/5.0 (%OS_SLICE% rv:60.0) @GK_SLICE@ Firefox/60.0 @PM_SLICE@");
pref("@GUAO_PREF@.gaming.youtube.com","Mozilla/5.0 (%OS_SLICE% rv:42.0) @GK_SLICE@ Firefox/42.0");
pref("@GUAO_PREF@.dropbox.com","Mozilla/5.0 (%OS_SLICE% rv:99.9) @GK_SLICE@ Firefox/99.9 (Borealis)");
pref("@GUAO_PREF@.patientaccess.com","Mozilla/5.0 (%OS_SLICE% rv:60.0) @GK_SLICE@ Firefox/60.0 @PM_SLICE@");
pref("@GUAO_PREF@.players.brightcove.net","Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko");
// The never-ending Facebook debacle...
pref("@GUAO_PREF@.facebook.com","Mozilla/5.0 (%OS_SLICE% rv:99.9) @GK_SLICE@ Firefox/99.9 (Borealis)");
pref("@GUAO_PREF@.fbcdn.net","Mozilla/5.0 (%OS_SLICE% rv:99.9) @GK_SLICE@ Firefox/99.9 (Borealis)");
// UA-Sniffing domains below are pending responses from their operators - temp workaround
pref("@GUAO_PREF@.chase.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@");
// For Amazon Prime videos
pref("@GUAO_PREF@.www.amazon.com","Mozilla/5.0 (%OS_SLICE% rv:45.9) @GK_SLICE@ Firefox/45.9 (Borealis)");
// Soundcloud uses Firefox-exclusive combinations of code. Never pass Firefox slice.
pref("@GUAO_PREF@.soundcloud.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
// Daily motion only likes strict Firefox UAs
pref("@GUAO_PREF@.dailymotion.com","Mozilla/5.0 (%OS_SLICE% rv:52.0) @GK_SLICE@ Firefox/52.0");
// The following requires native mode. Or it blocks.. "too old firefox", breakage, etc.
pref("@GUAO_PREF@.deviantart.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
pref("@GUAO_PREF@.deviantart.net","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
pref("@GUAO_PREF@.altibox.dk","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
pref("@GUAO_PREF@.altibox.no","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
pref("@GUAO_PREF@.firefox.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
pref("@GUAO_PREF@.mozilla.org","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
pref("@GUAO_PREF@.mozilla.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
pref("@GUAO_PREF@.github.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
// UA-Sniffing domains below have indicated no interest in supporting Borealis (BOO!)
pref("@GUAO_PREF@.humblebundle.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Borealis)");
pref("@GUAO_PREF@.privat24.ua","Mozilla/5.0 (%OS_SLICE% rv:38.0) @GK_SLICE@ Firefox/38.0");
pref("@GUAO_PREF@.citi.com","Mozilla/5.0 (%OS_SLICE% rv:57.0) @GK_SLICE@ Firefox/57.0 (Borealis)");
pref("@GUAO_PREF@.netflix.com","Mozilla/5.0 (%OS_SLICE% rv:45.9) @GK_SLICE@ Firefox/45.9");
pref("@GUAO_PREF@.netflximg.net","Mozilla/5.0 (%OS_SLICE% rv:45.9) @GK_SLICE@ Firefox/45.9");
// UA-sniffing domains that are "app/vendor-specific" and do not like Borealis
pref("@GUAO_PREF@.web.whatsapp.com","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36");
// The following domains do not like the Goanna slice
pref("@GUAO_PREF@.hitbox.tv","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@");
pref("@GUAO_PREF@.yuku.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ @PM_SLICE@");
// ============================================================================

13
navigator/branding/unofficial/locale/brand.properties

@ -7,8 +7,11 @@ brandShortName=Browser
brandShorterName=Browser
vendorShortName=Open Source Contributors
sidebarName=Sidebar
extensions.getMoreThemesURL=https://addons.mozilla.org/%LOCALE%/%APP%/complete-themes/
extensions.getPersonasURL=https://addons.mozilla.org/%LOCALE%/%APP%/themes/?sort=up-and-coming
spellchecker.dictionaries.download.url=https://addons.mozilla.org/%LOCALE%/%APP%/dictionaries
app.releaseNotesURL=http://www.seamonkey-project.org/releases/seamonkey%VERSION%/
app.vendorURL=http://www.seamonkey-project.org/
extensions.getMoreThemesURL=about:blank
extensions.getPersonasURL=about:blank
spellchecker.dictionaries.download.url=about:blank
app.releaseNotesURL=about:blank
app.vendorURL=about:
browser.startup.homepage=about:
browser.throbber.url=about:
startup.homepage_override_url=about:

2
navigator/branding/unstable/jar.mn

@ -16,4 +16,4 @@ comm.jar:
en-US.jar:
% locale branding en-US %locale/en-US/branding/
locale/en-US/branding/brand.dtd (../official/locale/brand.dtd)
locale/en-US/branding/brand.properties (../official/locale/brand.properties)
* locale/en-US/branding/brand.properties (../official/locale/brand.properties)

8
navigator/branding/unstable/moz.build

@ -7,6 +7,8 @@ JAR_MANIFESTS += ['jar.mn']
BRANDING_FILES += ['../official/license.txt']
JS_PREFERENCE_PP_FILES += ['../official/pref/application-branding.js']
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
BRANDING_FILES += [
'../official/icons/windows/html-file.ico',
@ -39,3 +41,9 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] in ('gtk2', 'gtk3'):
'icons/gtk/default.png',
'icons/gtk/main-window.png',
]
DEFINES['MOZ_APP_NAME'] = CONFIG['MOZ_APP_NAME']
DEFINES['MOZ_APP_VERSION'] = CONFIG['MOZ_APP_VERSION']
DEFINES['MOZ_BRANDING_DIRECTORY'] = CONFIG['MOZ_BRANDING_DIRECTORY']
DEFINES['MOZILLA_UAVERSION_U'] = CONFIG['MOZILLA_UAVERSION_U']
DEFINES['MOZILLA_COMPATVERSION_U'] = "52.9"

4
navigator/comm/locale/region.properties

@ -10,7 +10,3 @@ browser.search.order.1=DuckDuckGo
browser.search.order.2=Ekoru
browser.search.order.3=Ecosia
browser.search.order.4=Wikipedia (en)
# More information about this update link available in the update wizard.
# Only change this if you are providing localized release notes.
app.update.url.details=about:blank

Loading…
Cancel
Save