mirror of
https://github.com/zen-browser/desktop.git
synced 2026-05-01 11:35:03 +00:00
Added test LTO flags
This commit is contained in:
27
src/netwerk/protocol/http/nsHttpHandler-cpp.patch
Normal file
27
src/netwerk/protocol/http/nsHttpHandler-cpp.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
diff --git a/netwerk/protocol/http/nsHttpHandler.cpp b/netwerk/protocol/http/nsHttpHandler.cpp
|
||||
index 0ddb378e2b2ca20edc9cf7494d80d308d8cf51eb..79d8797fe31f678d7a712ddcd11eb90a727319a6 100644
|
||||
--- a/netwerk/protocol/http/nsHttpHandler.cpp
|
||||
+++ b/netwerk/protocol/http/nsHttpHandler.cpp
|
||||
@@ -860,19 +860,9 @@ void nsHttpHandler::BuildUserAgent() {
|
||||
mUserAgent += '/';
|
||||
mUserAgent += mProductSub;
|
||||
|
||||
- bool isFirefox = mAppName.EqualsLiteral("Firefox");
|
||||
- if (isFirefox || mCompatFirefoxEnabled) {
|
||||
- // "Firefox/x.y" (compatibility) app token
|
||||
- mUserAgent += ' ';
|
||||
- mUserAgent += mCompatFirefox;
|
||||
- }
|
||||
- if (!isFirefox) {
|
||||
- // App portion
|
||||
- mUserAgent += ' ';
|
||||
- mUserAgent += mAppName;
|
||||
- mUserAgent += '/';
|
||||
- mUserAgent += mAppVersion;
|
||||
- }
|
||||
+
|
||||
+ mUserAgent += ' ';
|
||||
+ mUserAgent += mCompatFirefox;
|
||||
}
|
||||
|
||||
#ifdef XP_WIN
|
||||
Reference in New Issue
Block a user