arkenfox / user.js

Firefox privacy, security and anti-tracking: a comprehensive user.js template for configuration and hardening
MIT License
9.92k stars 512 forks source link

Possible Small Enhancements #1747

Closed Jmkrnet closed 9 months ago

Jmkrnet commented 10 months ago

When upgrading to Firefox (FF) ESR 102 and now to ESR 115 I have accumulated some small enhancements (all should apply to current "user.js" version 118):

edited by 🩳


SECTION 0800 or 5000 or 9000 MAYBE ADD: Adds calculator for basic math calculations to address bar. For example typing "1+1" to address bar gives result "= 2" and it works offline without connecting to any search engines. // user_pref("browser.urlbar.suggest.calculator", true);

DONE


0211 POSSIBLY REMOVE AS IT SEEMS TO BE HANDLED BY RFP (AND MAYBE 0210 IS ALSO REDUNDANT?):

DONE


1006 POSSIBLE COMMENT ENHANCEMENT:

DONE


2603.helperApps.deleteTempFileOnExit, 2815.cookies POSSIBLE COMMENT ENHANCEMENT:

DONE


5508.eme.enabled POSSIBLE COMMENT ENHANCEMENT:

DONE


2660 POSSIBLE COMMENT ENHANCEMENT:

DONE


I am not sure how you define hidden prefs, but if it means non-obsolete prefs that are not visible in "about:config" unless FF or user defines some value for them (i.e. a "Delete" instead of "Reset" button is shown in "about:config"), here are prefs I noticed not marked as "[HIDDEN PREF]" that seem to be hidden at least on my OS (LINUX) with FF ESR 102 and 115:

DONE

Thorin-Oakenpants commented 10 months ago

hidden pref

Thorin-Oakenpants commented 10 months ago

helperApps.deleteTempFileOnExit - is default true on windows as well

Thorin-Oakenpants commented 10 months ago

0210 (en-US,en), since RFP no longer matches locale to it, can also be removed or moved to optional. So everyone feel free to use any language. I don't know if I want to keep it in the user.js so prefsCleaner resets it - I would need to check what it gets reset to

update: done - see #1759 and https://github.com/arkenfox/user.js/commit/5759127493b8da4520f7d070ce5c43cb7cabcfc5

Thorin-Oakenpants commented 10 months ago

https://searchfox.org/mozilla-central/search?q=helperApps.deleteTempFileOnExit&path=&case=false&regexp=false

helperApps.deleteTempFileOnExit - true in firefox.js, false in all.js ... how does this work (rhetorical)?

ignoring android (FYI: @SkewedZeppelin) I guess we just test each platform

So I think we can ignore adding a default note

Thorin-Oakenpants commented 10 months ago

browser.shell.shortcutFavicons

So yup, I would say this is a windows only thing

Thorin-Oakenpants commented 10 months ago

scopes

man that's a long one. I use searchfox links to files, but hg.mozilla.org revisions links to lines - but this revision moved the file and didn't change the content we want, so I can't use a sweet short link

lets see what the diffs are:

kaply

1 (SCOPE_PROFILE)
2 (SCOPE_USER)
4 (SCOPE_APPLICATION)
8 (SCOPE_SYSTEM)

moz code

  // General descriptions of where items are installed.
  // Installed in this profile.
  SCOPE_PROFILE: 1,
  // Installed for all of this user's profiles.
  SCOPE_USER: 2,
  // Installed and owned by the application.
  SCOPE_APPLICATION: 4,
  // Installed for all users of the computer.
  SCOPE_SYSTEM: 8,
  // Installed temporarily
  SCOPE_TEMPORARY: 16,
  // The combination of all scopes.
  SCOPE_ALL: 31,

yeah, so that's a good link to add, because that archive is fucking old now and somewhat out of date

Thorin-Oakenpants commented 10 months ago

actually, fuck that long link ;) it hasn't changed anything, because temporary extensions cannot load on restart.. and I can just add this

 * 1=profile, 2=user, 4=application, 8=system, 16=temporary, 31=all
Thorin-Oakenpants commented 10 months ago

extensions.webcompat.enable_shim - is runtime - set based on ETP settings = so not "hidden" from sight ever - but technically it is [hidden] by my own definition above

edit: not sure what to do here - I defined hidden above as the way I understood and have used it - so users know why they can't see it, i.e they have to create it and add it

I suspect the other three are runtime as well

What should I do people? give them hidden tags or not?

Thorin-Oakenpants commented 10 months ago

^ repeat - someone answer ... starting to feel like my childhood in the basement again

SkewedZeppelin commented 10 months ago

maybe managed?

Thorin-Oakenpants commented 10 months ago

not sure if I want another tag

so here's the thing - I label items to help, but that doesn't mean I have to label ALL items that fit that tag: eg

So i kinda feel like these items that aren't "hidden" in about:config don't really need a [HIDDEN] tag - but I get that as a purist, it is fine. And if someone says "but it's not hidden" I can use the same definition I always have, and then tell them to delete it and reload about:config and tell if they can see it

So the question is - do I add hidden tags or not?

Thorin-Oakenpants commented 10 months ago

And if I don;t label them, then if someone says .. but that's a HIDDEN pref, please label it - I can say "I only label them when they aren't set by runtime to help users"

So I win either way

So do I add the labels or not ... quick poll of one .. you're up Tad

Thorin-Oakenpants commented 10 months ago

ok, ignoring them, because of maintenance, plus I am the boss so my second argument wins. just need to check that geo one - because that may only get set if the system supports it

crssi commented 10 months ago

starting to feel like my childhood in the basement again

I know this response is a "spam", but you seems to make me laugh quite a lot of time. Love you

Thorin-Oakenpants commented 10 months ago

might revisit my last decision .. I mean if it universally (all desktop platforms) has a trash bin symbol, then it's [HIDDEN]

Thorin-Oakenpants commented 9 months ago

okie dokie

@Jmkrnet thanks .. have some 🍰 or 🥧