morgan pushed to branch mullvad-browser-115.16.0esr-13.5-1 at The Tor Project / Applications / Mullvad Browser

Commits:

1 changed file:

Changes:

  • uriloader/exthandler/nsExternalHelperAppService.cpp
    ... ... @@ -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;