0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-06-01 23:52:13 +00:00
Files
termux-packages/x11-packages/firefox/0024-disable-native-https-dns-resolve.patch
2025-03-24 09:42:44 +08:00

35 lines
1.2 KiB
Diff

It uses `android_res_nquery`, but this function only got added in API level 29
--- a/netwerk/dns/nsHostResolver.cpp
+++ b/netwerk/dns/nsHostResolver.cpp
@@ -210,6 +210,8 @@
// native HTTPS records on Win 11 for now.
sNativeHTTPSSupported = StaticPrefs::network_dns_native_https_query_win10() ||
mozilla::IsWin11OrLater();
+#elif defined(__TERMUX__)
+ sNativeHTTPSSupported = false;
#elif defined(MOZ_WIDGET_ANDROID)
// android_res_nquery only got added in API level 29
sNativeHTTPSSupported = jni::GetAPIVersion() >= 29;
--- a/netwerk/dns/moz.build
+++ b/netwerk/dns/moz.build
@@ -53,17 +53,7 @@
"nsEffectiveTLDService.cpp", # Excluded from UNIFIED_SOURCES due to special build flags.
]
-if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
- SOURCES += ["PlatformDNSWin.cpp"]
-elif CONFIG["OS_TARGET"] == "Linux":
- SOURCES += ["PlatformDNSUnix.cpp"]
- OS_LIBS += ["resolv"]
-elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
- SOURCES += ["PlatformDNSMac.cpp"]
-elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
- SOURCES += ["PlatformDNSAndroid.cpp"]
-else:
- DEFINES["MOZ_NO_HTTPS_IMPL"] = 1
+DEFINES["MOZ_NO_HTTPS_IMPL"] = 1
UNIFIED_SOURCES += [
"ChildDNSService.cpp",