mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-23 12:53:07 +09:00
import change from mozilla upstream: Bug 1384330 - Blocking the mozAddonManager when pref 'privacy.resistFingerprinting.block_mozAddonManager' is true. r=arthuredelstein,mossop
This commit is contained in:
parent
5b5d42a6af
commit
f05d85ff6b
1 changed files with 6 additions and 0 deletions
|
|
@ -20,6 +20,12 @@ using namespace mozilla::dom;
|
|||
|
||||
static bool
|
||||
IsValidHost(const nsACString& host) {
|
||||
// This hidden pref allows users to disable mozAddonManager entirely if they want
|
||||
// for fingerprinting resistance. Someone like Tor browser will use this pref.
|
||||
if (Preferences::GetBool("privacy.resistFingerprinting.block_mozAddonManager")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// This is ugly, but Preferences.h doesn't have support
|
||||
// for default prefs or locked prefs
|
||||
nsCOMPtr<nsIPrefService> prefService (do_GetService(NS_PREFSERVICE_CONTRACTID));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue