diff --git a/assets/mozconfig.new b/assets/mozconfig.new index 605fb52..422f1c2 100644 --- a/assets/mozconfig.new +++ b/assets/mozconfig.new @@ -13,6 +13,7 @@ ac_add_options --enable-release ac_add_options --enable-rust-simd ac_add_options --with-app-name=librewolf +ac_add_options --with-app-basename=librewolf ac_add_options --with-branding=browser/branding/librewolf ac_add_options --with-unsigned-addon-scopes=app,system diff --git a/assets/patches.txt b/assets/patches.txt index e710f11..1c47c80 100644 --- a/assets/patches.txt +++ b/assets/patches.txt @@ -28,4 +28,5 @@ patches/ui-patches/remove-cfrprefs.patch patches/ui-patches/remove-organization-policy-banner.patch patches/ui-patches/website-appearance-ui-rfp.patch patches/urlbarprovider-interventions.patch +patches/useragent.patch patches/windows-theming-bug.patch diff --git a/patches/useragent.patch b/patches/useragent.patch new file mode 100644 index 0000000..5f4238a --- /dev/null +++ b/patches/useragent.patch @@ -0,0 +1,34 @@ +diff --git a/netwerk/protocol/http/nsHttpHandler.cpp b/netwerk/protocol/http/nsHttpHandler.cpp +index bf1ad95..bd38f28 100644 +--- a/netwerk/protocol/http/nsHttpHandler.cpp ++++ b/netwerk/protocol/http/nsHttpHandler.cpp +@@ -427,18 +427,8 @@ nsresult nsHttpHandler::Init() { + nsCOMPtr appInfo; + appInfo = mozilla::components::XULRuntime::Service(); + +- mAppName.AssignLiteral(MOZ_APP_UA_NAME); +- if (mAppName.Length() == 0 && appInfo) { +- // Try to get the UA name from appInfo, falling back to the name +- appInfo->GetUAName(mAppName); +- if (mAppName.Length() == 0) { +- appInfo->GetName(mAppName); +- } +- appInfo->GetVersion(mAppVersion); +- mAppName.StripChars(R"( ()<>@,;:\"/[]?={})"); +- } else { +- mAppVersion.AssignLiteral(MOZ_APP_UA_VERSION); +- } ++ mAppName.AssignLiteral("Firefox"); ++ mAppVersion.AssignLiteral(MOZ_APP_UA_VERSION); + + mMisc.AssignLiteral("rv:" MOZILLA_UAVERSION); + +@@ -2846,7 +2836,7 @@ void nsHttpHandler::SetHttpHandlerInitArgs(const HttpHandlerInitArgs& aArgs) { + mMisc = aArgs.mMisc(); + mProduct = aArgs.mProduct(); + mProductSub = aArgs.mProductSub(); +- mAppName = aArgs.mAppName(); ++ mAppName = "Firefox"; + mAppVersion = aArgs.mAppVersion(); + mCompatFirefox = aArgs.mCompatFirefox(); + mCompatDevice = aArgs.mCompatDevice();