chore: Update mozconfig to enable LTO and remove unused options

This commit is contained in:
Mauro Balades
2024-07-15 01:48:55 +02:00
parent ac92f251bc
commit 7e74d75612
3 changed files with 6 additions and 22 deletions

View File

@@ -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

View File

@@ -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

View 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;