ma1 pushed to branch tor-browser-128.2.0esr-14.0-1 at The Tor Project /
Applications / Tor Browser
Commits:
60192d87 by hackademix at 2024-09-25T07:59:51+02:00
Bug 42832: Download spam prevention exemption for browser extensions.
- - - - -
1 changed file:
- uriloader/exthandler/nsExternalHelperAppService.cpp
Changes:
=====================================
uriloader/exthandler/nsExternalHelperAppService.cpp
=====================================
@@ -1900,6 +1900,12 @@ bool nsExternalAppHandler::IsDownloadSpam(nsIChannel*
aChannel) {
nsCOMPtr<nsIPermissionManager> permissionManager =
mozilla::services::GetPermissionManager();
nsCOMPtr<nsIPrincipal> principal = loadInfo->TriggeringPrincipal();
+
+ // Always allow WebExtensions
+ if (principal && principal->SchemeIs("moz-extension")) {
+ return false;
+ }
+
bool exactHostMatch = false;
constexpr auto type = "automatic-download"_ns;
nsCOMPtr<nsIPermission> permission;
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/60192d87e2a169b9a141060d2b77a2dbf25f3230
--
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/60192d87e2a169b9a141060d2b77a2dbf25f3230
You're receiving this email because of your account on gitlab.torproject.org.
_______________________________________________
tbb-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-commits