user.js icon indicating copy to clipboard operation
user.js copied to clipboard

Mozilla restrictions

Open 2glops opened this issue 5 years ago • 8 comments

Looking at 2662 and 4503 :

/* 2662: disable webextension restrictions on certain mozilla domains (you also need 4503) [FF60+]

  • [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=1384330,1406795,1415644,1453988 ***/ // user_pref("extensions.webextensions.restrictedDomains", "");

/* 4503: disable mozAddonManager Web API [FF57+]

  • [NOTE] To allow extensions to work on AMO, you also need 2662
  • [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=1384330,1406795,1415644,1453988 ***/ user_pref("privacy.resistFingerprinting.block_mozAddonManager", true); // [HIDDEN PREF]

So, shouldn't be 2662 active ? Or 4503 inactive ?

2glops avatar Mar 07 '21 16:03 2glops

What do you want? If you want to allow extensions access to AMO both are needed IIRC.

rusty-snake avatar Mar 07 '21 16:03 rusty-snake

Both should be active.

KOLANICH avatar Mar 07 '21 16:03 KOLANICH

Both should be inactive.

crssi avatar Mar 07 '21 17:03 crssi

For me both prefs should be on same state in the user.js, either active or inactive. The later seems more logical.

2glops avatar Mar 07 '21 18:03 2glops

They have different functions and are treated as such

  • 4503 is a perceived privacy issue: happy to have it active
  • 2662 is a security issue, and by default will be off

Thorin-II avatar Mar 08 '21 01:03 Thorin-II

2662 is a security issue, and by default will be off

If one doesn't trust the extensions he installs, he shouldn't use them in the first place. If one trusts them, there is no reason to keep 2662 off. And 2662 is also a privacy issue, without privacy-protecting extensions there is no privacy (though someone may argue that there is no privacy in the Web at all no matter which browser one uses, which exts one installs and which prefs one sets and that people wanting privacy should use Gemini or maybe just disconnect a computer from the net, or maybe just throw it into trash, but I don't aggree to such opinions).

KOLANICH avatar Mar 08 '21 06:03 KOLANICH

And 2662 is also a privacy issue

Yes, It is also a perceived privacy issue.

domains in the current nightly pref

accounts-static.cdn.mozilla.net,
accounts.firefox.com,
addons.cdn.mozilla.net,
addons.mozilla.org,api.
accounts.firefox.com,
content.cdn.mozilla.net,
discovery.addons.mozilla.org,
install.mozilla.org,
oauth.accounts.firefox.com,
profile.accounts.firefox.com,
support.mozilla.org,
sync.services.mozilla.com

We added this back in v60. We also flipped DNT to true

we don't clear extensions.webextensions.restrictedDomains by default and some mozilla domains use GA but do honor the DNT flag

Content scripts are not allowed on pages that have elevated privileges via mozAddonManager. It's one thing to disable mozAddonManager, but to allow scripts access to oauth, accounts, sync etc by default is a bad idea.

security trumps a perceived privacy gain

At the end of the day, GA on a few Mozilla domains is not a big deal. How many times does a person go to AMO? I'd be lucky if I go there once every three months.

Thorin-II avatar Mar 08 '21 19:03 Thorin-II

security trumps a perceived privacy gain

What security one can exist when the enemy is already inside?

And if the enemy is not inside, I don't see that privacy gain outweights security one.

but do honor the DNT flag

One has to trust Mozilla keeping its promise ethernally and not being compromised.

, but to allow scripts access to oauth, accounts, sync etc by default is a bad idea.

Of course it is good, if one doesn't install malicious addons. We install addons exactly for this - to have them working and doing their jobs everywhere.

KOLANICH avatar Mar 08 '21 19:03 KOLANICH