mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-28 17:31:32 +00:00
chore: Update mozconfig to enable LTO and remove unused options
This commit is contained in:
2
.github/workflows/src/windows_mozconfig
vendored
2
.github/workflows/src/windows_mozconfig
vendored
@@ -10,8 +10,6 @@ export WINEDEBUG=-all
|
||||
ac_add_options --target=x86_64-pc-mingw32
|
||||
|
||||
export MOZ_STUB_INSTALLER=1
|
||||
export MOZ_MAINTENANCE_SERVICE=
|
||||
|
||||
export MOZ_PKG_FORMAT=TAR
|
||||
|
||||
export CROSS_BUILD=1
|
||||
|
||||
@@ -15,6 +15,7 @@ export MOZ_BRANDING_DIRECTORY=${brandingDir}
|
||||
export MOZ_OFFICIAL_BRANDING_DIRECTORY=${brandingDir}
|
||||
export MOZ_MACBUNDLE_ID=${appId}
|
||||
export MOZ_DISTRIBUTION_ID=${appId}
|
||||
export MOZ_MACBUNDLE_NAME="${name}.app"
|
||||
|
||||
# Uncomment if builds are too resource hungry
|
||||
# mk_add_options MOZ_MAKE_FLAGS="-j4"
|
||||
@@ -22,9 +23,11 @@ export MOZ_DISTRIBUTION_ID=${appId}
|
||||
|
||||
# Misc
|
||||
export MOZ_STUB_INSTALLER=1
|
||||
export MOZ_INCLUDE_SOURCE_INFO=1
|
||||
export MOZ_SOURCE_REPO=https://github.com/zen-browser/desktop
|
||||
export MOZ_SOURCE_CHANGESET=${changeset}
|
||||
if ! test "$ZEN_RELEASE"; then
|
||||
export MOZ_INCLUDE_SOURCE_INFO=1
|
||||
fi
|
||||
|
||||
ac_add_options --enable-bootstrap
|
||||
|
||||
@@ -80,5 +83,7 @@ if test "$ZEN_CROSS_COMPILING"; then
|
||||
ac_add_options --target=x86_64-pc-linux-gnu
|
||||
fi
|
||||
|
||||
export MOZ_APP_UA_NAME="Firefox"
|
||||
|
||||
# ALWAYS MANTAIN ONE LINE BREAK AT THE END OF THIS FILE
|
||||
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
diff --git a/netwerk/protocol/http/nsHttpHandler.cpp b/netwerk/protocol/http/nsHttpHandler.cpp
|
||||
index 0ddb378e2b2ca20edc9cf7494d80d308d8cf51eb..f311cf92a16d652e24d479038f2ccad5f19b27d4 100644
|
||||
--- a/netwerk/protocol/http/nsHttpHandler.cpp
|
||||
+++ b/netwerk/protocol/http/nsHttpHandler.cpp
|
||||
@@ -861,12 +861,12 @@ void nsHttpHandler::BuildUserAgent() {
|
||||
mUserAgent += mProductSub;
|
||||
|
||||
bool isFirefox = mAppName.EqualsLiteral("Firefox");
|
||||
- if (isFirefox || mCompatFirefoxEnabled) {
|
||||
+ if (isFirefox || mCompatFirefoxEnabled || true) {
|
||||
// "Firefox/x.y" (compatibility) app token
|
||||
mUserAgent += ' ';
|
||||
mUserAgent += mCompatFirefox;
|
||||
}
|
||||
- if (!isFirefox) {
|
||||
+ if (!isFirefox && false) {
|
||||
// App portion
|
||||
mUserAgent += ' ';
|
||||
mUserAgent += mAppName;
|
||||
Reference in New Issue
Block a user