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

[tor-commits] [Git][tpo/applications/tor-browser][base-browser-102.8.0esr-12.0-1] fixup! Bug 40253: Explicitly allow NoScript in Private Browsing mode.



Title: GitLab

Richard Pospesel pushed to branch base-browser-102.8.0esr-12.0-1 at The Tor Project / Applications / Tor Browser

Commits:

  • 3c99d6af
    by hackademix at 2023-02-15T18:06:33+00:00
    fixup! Bug 40253: Explicitly allow NoScript in Private Browsing mode.
    
    Bug 41598: Prevent NoScript from being removed/disabled.
    Bug 40253: Explicitly allow NoScript in Private Browsing mode.
    

1 changed file:

Changes:

  • toolkit/mozapps/extensions/internal/XPIDatabase.jsm
    ... ... @@ -854,6 +854,15 @@ class AddonInternal {
    854 854
           }
    
    855 855
         }
    
    856 856
     
    
    857
    +    // Bug 41598: prevent NoScript from being uninstalled/disabled
    
    858
    +    if (this.id === "{73a6fe31-595d-460b-a920-fcc0f8843232}") {
    
    859
    +      permissions &= ~(
    
    860
    +        AddonManager.PERM_CAN_UNINSTALL |
    
    861
    +        AddonManager.PERM_CAN_DISABLE |
    
    862
    +        AddonManager.PERM_CAN_CHANGE_PRIVATEBROWSING_ACCESS
    
    863
    +      );
    
    864
    +    }
    
    865
    +
    
    857 866
         return permissions;
    
    858 867
       }
    
    859 868
     
    

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