summaryrefslogtreecommitdiffstats
path: root/browser/branding/official
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-30 09:44:21 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-30 09:44:21 +0200
commita1a007a4856fa50d6d811c2268f881e3666f4c67 (patch)
tree24b082c1bfb5777f1770c82a534bf765160bc1b8 /browser/branding/official
parenteddd0de2ae80e176011f41a5400e81522d53f4f3 (diff)
parent59bf4204a84f7638d3f89a29bc7c04e5dc401369 (diff)
downloadUXP-a1a007a4856fa50d6d811c2268f881e3666f4c67.tar
UXP-a1a007a4856fa50d6d811c2268f881e3666f4c67.tar.gz
UXP-a1a007a4856fa50d6d811c2268f881e3666f4c67.tar.lz
UXP-a1a007a4856fa50d6d811c2268f881e3666f4c67.tar.xz
UXP-a1a007a4856fa50d6d811c2268f881e3666f4c67.zip
Merge branch 'master' of https://github.com/MoonchildProductions/UXP into html_input_datetime_1
Diffstat (limited to 'browser/branding/official')
-rw-r--r--browser/branding/official/bgintro.bmpbin682144 -> 0 bytes
-rw-r--r--browser/branding/official/branding.nsi2
-rw-r--r--browser/branding/official/clock.bmpbin8982 -> 0 bytes
-rw-r--r--browser/branding/official/dsstorebin12292 -> 0 bytes
-rw-r--r--browser/branding/official/moz.build52
-rw-r--r--browser/branding/official/newtab.icobin6518 -> 0 bytes
-rw-r--r--browser/branding/official/newwindow.icobin6518 -> 0 bytes
-rw-r--r--browser/branding/official/particles.bmpbin8982 -> 0 bytes
-rw-r--r--browser/branding/official/pbmode.icobin6518 -> 0 bytes
-rw-r--r--browser/branding/official/pencil-rtl.bmpbin8982 -> 0 bytes
-rw-r--r--browser/branding/official/pencil.bmpbin8982 -> 0 bytes
-rw-r--r--browser/branding/official/pref/firefox-branding.js76
12 files changed, 37 insertions, 93 deletions
diff --git a/browser/branding/official/bgintro.bmp b/browser/branding/official/bgintro.bmp
deleted file mode 100644
index 9c2fc80cf..000000000
--- a/browser/branding/official/bgintro.bmp
+++ /dev/null
Binary files differ
diff --git a/browser/branding/official/branding.nsi b/browser/branding/official/branding.nsi
index 24b0f4bba..58d7554df 100644
--- a/browser/branding/official/branding.nsi
+++ b/browser/branding/official/branding.nsi
@@ -20,7 +20,7 @@
!define OFFICIAL
!define URLStubDownload ""
!define URLManualDownload ""
-!define URLSystemRequirements ""
+!define URLSystemRequirements "http://www.basilisk-browser.org/requirements.shtml"
!define Channel "release"
# The installer's certificate name and issuer expected by the stub installer
diff --git a/browser/branding/official/clock.bmp b/browser/branding/official/clock.bmp
deleted file mode 100644
index 7da034d3b..000000000
--- a/browser/branding/official/clock.bmp
+++ /dev/null
Binary files differ
diff --git a/browser/branding/official/dsstore b/browser/branding/official/dsstore
deleted file mode 100644
index 8ea703674..000000000
--- a/browser/branding/official/dsstore
+++ /dev/null
Binary files differ
diff --git a/browser/branding/official/moz.build b/browser/branding/official/moz.build
index f1a839c9d..e3b7fd1ab 100644
--- a/browser/branding/official/moz.build
+++ b/browser/branding/official/moz.build
@@ -9,53 +9,5 @@ DIRS += ['content', 'locales']
DIST_SUBDIR = 'browser'
export('DIST_SUBDIR')
-JS_PREFERENCE_FILES += [
- 'pref/firefox-branding.js',
-]
-
-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',
- 'bgintro.bmp',
- 'branding.nsi',
- 'clock.bmp',
- 'document.ico',
- 'firefox.ico',
- 'newtab.ico',
- 'newwindow.ico',
- 'particles.bmp',
- 'pbmode.ico',
- 'pencil-rtl.bmp',
- 'pencil.bmp',
- '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',
- ]
+include('../shared/branding.mozbuild')
+ApplicationBranding() \ No newline at end of file
diff --git a/browser/branding/official/newtab.ico b/browser/branding/official/newtab.ico
deleted file mode 100644
index a9b37c08c..000000000
--- a/browser/branding/official/newtab.ico
+++ /dev/null
Binary files differ
diff --git a/browser/branding/official/newwindow.ico b/browser/branding/official/newwindow.ico
deleted file mode 100644
index 553720771..000000000
--- a/browser/branding/official/newwindow.ico
+++ /dev/null
Binary files differ
diff --git a/browser/branding/official/particles.bmp b/browser/branding/official/particles.bmp
deleted file mode 100644
index d523606c2..000000000
--- a/browser/branding/official/particles.bmp
+++ /dev/null
Binary files differ
diff --git a/browser/branding/official/pbmode.ico b/browser/branding/official/pbmode.ico
deleted file mode 100644
index 47677c13f..000000000
--- a/browser/branding/official/pbmode.ico
+++ /dev/null
Binary files differ
diff --git a/browser/branding/official/pencil-rtl.bmp b/browser/branding/official/pencil-rtl.bmp
deleted file mode 100644
index 67d2fe5d2..000000000
--- a/browser/branding/official/pencil-rtl.bmp
+++ /dev/null
Binary files differ
diff --git a/browser/branding/official/pencil.bmp b/browser/branding/official/pencil.bmp
deleted file mode 100644
index 7dd55741f..000000000
--- a/browser/branding/official/pencil.bmp
+++ /dev/null
Binary files differ
diff --git a/browser/branding/official/pref/firefox-branding.js b/browser/branding/official/pref/firefox-branding.js
index a3d6927bb..190b84e78 100644
--- a/browser/branding/official/pref/firefox-branding.js
+++ b/browser/branding/official/pref/firefox-branding.js
@@ -2,55 +2,47 @@
* 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/. */
-pref("startup.homepage_override_url", "https://www.basilisk-browser.org/releasenotes.shtml");
-pref("startup.homepage_welcome_url", "http://www.basilisk-browser.org/firstrun/");
+#filter substitution
+#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("app.update.url", "https://aus.basilisk-browser.org/?application=%PRODUCT%&version=%VERSION%&arch=%BUILD_TARGET%&buildid=%BUILD_ID%&channel=%CHANNEL%");
-// 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);
+// Version release notes
+pref("app.releaseNotesURL", "http://@BRANDING_SITEURL@/@BRANDING_RELNOTESPATH@");
+
+// Vendor home page
+pref("app.vendorURL", "http://@BRANDING_SITEURL@/");
+
+pref("app.update.url", "https://@BRANDING_APPUPDATEURL@/@BRANDING_APPUPDATEPATH@");
+
// URL user can browse to manually if for some reason all update installation
// 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
// 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@");
+
+// Provide UA Gecko and Firefox slices for web compatibility
+pref("general.useragent.compatMode.firefox",true);
+pref("general.useragent.compatMode.gecko",true);
// Switch Application Updates off for now
pref("app.update.enabled", false);
-// Version release notes
-pref("app.releaseNotesURL", "http://www.basilisk-browser.org/releasenotes.shtml");
-// 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");
-
+// Shared User Agent Overrides
+#include ../../shared/uaoverrides.inc