morgan pushed to branch mullvad-browser-115.16.0esr-13.5-1 at The Tor Project / Applications / Mullvad Browser
Commits:
-
8cd00587
by hackademix at 2024-09-30T17:15:07+00:00
1 changed file:
Changes:
... | ... | @@ -1895,6 +1895,12 @@ bool nsExternalAppHandler::IsDownloadSpam(nsIChannel* aChannel) { |
1895 | 1895 | nsCOMPtr<nsIPermissionManager> permissionManager =
|
1896 | 1896 | mozilla::services::GetPermissionManager();
|
1897 | 1897 | nsCOMPtr<nsIPrincipal> principal = loadInfo->TriggeringPrincipal();
|
1898 | + |
|
1899 | + // Always allow WebExtensions
|
|
1900 | + if (principal && principal->SchemeIs("moz-extension")) {
|
|
1901 | + return false;
|
|
1902 | + }
|
|
1903 | + |
|
1898 | 1904 | bool exactHostMatch = false;
|
1899 | 1905 | constexpr auto type = "automatic-download"_ns;
|
1900 | 1906 | nsCOMPtr<nsIPermission> permission;
|