ma1 pushed to branch base-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
a0680fc3
by hackademix at 2024-09-25T08:26:03+02:00
1 changed file:
Changes:
... | ... | @@ -1900,6 +1900,12 @@ bool nsExternalAppHandler::IsDownloadSpam(nsIChannel* aChannel) { |
1900 | 1900 | nsCOMPtr<nsIPermissionManager> permissionManager =
|
1901 | 1901 | mozilla::services::GetPermissionManager();
|
1902 | 1902 | nsCOMPtr<nsIPrincipal> principal = loadInfo->TriggeringPrincipal();
|
1903 | + |
|
1904 | + // Always allow WebExtensions
|
|
1905 | + if (principal && principal->SchemeIs("moz-extension")) {
|
|
1906 | + return false;
|
|
1907 | + }
|
|
1908 | + |
|
1903 | 1909 | bool exactHostMatch = false;
|
1904 | 1910 | constexpr auto type = "automatic-download"_ns;
|
1905 | 1911 | nsCOMPtr<nsIPermission> permission;
|