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

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



Title: GitLab

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

Commits:

  • 62b28f16
    by hackademix at 2024-09-25T08:26:09+02:00
    Bug 42832: Download spam prevention exemption for browser extensions.
    

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;
    

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