ma1 pushed to branch mullvad-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Mullvad Browser

Commits:

1 changed file:

Changes:

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