[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/mullvad-browser][mullvad-browser-115.16.0esr-13.5-1] Bug 42832: Download spam prevention exemption for browser extensions.



Title: GitLab

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
    Bug 42832: Download spam prevention exemption for browser extensions.
    

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;
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits