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

changelog: v103

Open Thorin-II opened this issue 4 years ago • 31 comments

date: 18-August-2022

FF103 release notes FF103 for developers FF103 security advisories

CHANGELOG


:star: For the long story on the clearOnShutdown* and cookie.lifetimePolicy pref changes, see the first post in #1491

  • new in user.js v103
user_pref("geo.provider.use_geoclue", false); // [FF102+] [LINUX]
  • changed values in user.js v103
user_pref("privacy.clearOnShutdown.cookies", true); // was false
user_pref("privacy.clearOnShutdown.offlineApps", true); // was false
  • made inactive and moved to personal in user.js v103
// user_pref("media.autoplay.blocking_policy", 2);
  • moved to 9999: DEPRECATED / REMOVED in user.js v103
    • note: cookie.lifetimePolicy : FF103 code will always reset this to 0, technically removed in FF104
user_pref("network.cookie.lifetimePolicy", 2);
user_pref("security.pki.sha1_enforcement_level", 1);

:star: your friendly reminder to run prefsCleaner

62baz6


NO STATS. NO ALL HAIL PANTS. UNTIL NEXT TIME.

Thorin-II avatar Aug 17 '22 19:08 Thorin-II

Thanks Pants.

aleyvo avatar Aug 17 '22 19:08 aleyvo

It might be clearer to state "click-to-play only" instead of "user" in: https://github.com/arkenfox/user.js/blob/0dba33688fe468aca9b58c60910201afb3b89f60/user.js#L1266

That's what I've added in a comment in my overrides.


Also, could you please add a one-liner to explain this setting? https://github.com/arkenfox/user.js/blob/0dba33688fe468aca9b58c60910201afb3b89f60/user.js#L771

It's not clear from the UI or the user.js. The clearest explanation I've found is https://github.com/arkenfox/user.js/issues/119#issuecomment-301506621.

opusforlife2 avatar Aug 17 '22 22:08 opusforlife2

NO ALL HAIL PANTS

:-((((

fxbrit avatar Aug 18 '22 09:08 fxbrit

Thank you @Thorin-Oakenpants and others too. ❤️

crssi avatar Aug 18 '22 10:08 crssi

@opusforlife2

https://searchfox.org/mozilla-central/rev/db4b1d66c4b409bdbce43f3f3498401f5303d961/browser/modules/Sanitizer.jsm#538

          Ci.nsIClearDataService.CLEAR_PERMISSIONS |
            Ci.nsIClearDataService.CLEAR_CONTENT_PREFERENCES |
            Ci.nsIClearDataService.CLEAR_DOM_PUSH_NOTIFICATIONS |
            Ci.nsIClearDataService.CLEAR_CLIENT_AUTH_REMEMBER_SERVICE |
            Ci.nsIClearDataService.CLEAR_CERT_EXCEPTIONS

rusty-snake avatar Aug 18 '22 10:08 rusty-snake

Well I'll say it:

ALL HAIL PANTS

Collect the set

unnamed

You moved a lot of furniture around in 2800 and it's a lot better now (although I think this did get lost in the shuffle: * [SETTING] Privacy & Security>History>Custom Settings>Clear history when Firefox closes>Settings). Thanks for all the work!

practik avatar Aug 18 '22 14:08 practik

although I think this did get lost in the shuffle

https://github.com/arkenfox/user.js/blob/0dba33688fe468aca9b58c60910201afb3b89f60/user.js#L757-L759

What is missing is Privacy & Security>Cookies and Site Data>Delete cookies and site data when Firefox is closed. And by that I mean the new behavior (ignore that it is listed under deprecated)

toggling that checkbox flips sanitizeOnShutdown cookies/offlineapps/cache (we already have 2810 = true with other items to clear). I haven't fully tested what happens in all configs. If 2810 is enabled then it just flips those three items but if 2810 is disabled, it will obviously enable it and those three items, and the rest I'm not 100% sure on - I think it uses the migration logic (or maybe it recognizes user modified values)

Anyway, I was going to add that somewhere, and simply say, leave this alone, we control it's state via 2800 ">History>" settings

  • e.g if someone decides to not delete cache on shutdown (and that's ok) then the UI becomes unchecked, and then they think cookies + site data is not being cleared

Thorin-II avatar Aug 18 '22 15:08 Thorin-II

Ah, I get it now – I vaguely wondered what | Settings meant. Thanks.

I was going to add that somewhere

I guess a note at the top of 2800? * [NOTE] Ignore [SETTING] Privacy & Security>Cookies and Site Data>Delete cookies and site data when Firefox is closed * This setting toggles sanitizeOnShutdown prefs for cache (2811), cookies and offlineapps (2815). * We set those prefs individually, so the checkbox may not correctly indicate their state.

practik avatar Aug 18 '22 15:08 practik

You moved a lot of furniture around in 2800 I guess a note at the top of 2800?

2800 has become a sprawling behemoth .. I am loathe to add more to it: and it doesn't help that ESR102 behaves differently


@opusforlife2

It's not clear from the UI or the user.js [siteSettings]

= site settings .. like permissions (cookies+site data, notifications, geo ... etc ... ETP exceptions), zoom levels (except RFP ignores those), etc.

The UI is

- History
   - browsing & download history = `.history` + `.downloads`
   - active logins = `.sessions`
   - form & search history = `.formdata`
   - cookies = `.cookies`
   - cache = `.cache`
- Data
   - site settings = `.siteSettings`
   - offline website data - `,offlineApps`

It's not as clean as it could be, and there are plans to tidy it up. Cookies + Active Logins + Cache should be next to offline website data under data. They should rename "offline website data" to "Site Data" to be consistent. Cache should be there as well, since it's linked to cookies + site data (and I hope they get around to cache respecting site exceptions to tidy that up so they all behave the same)

I have explained .sessions in 2811 and .offlineApps = "Site Data" in 2815, as these are the only two IMO that are ambiguous. The rest are all intuitive

What I'd like to see is something like

- History
   - browsing & download history
   - form & search history
- Site Settings
   - site permissions and exceptions
- Cookies and Site Data
   - active logins <-- so vague what this is for users
   - cache
   - cookies
   - website data

and everything under "Cookies + Site Data" should respect site exceptions, and be flipped by the "clear cookies + site data" checkbox. This would align naming and behavior

Thorin-II avatar Aug 18 '22 19:08 Thorin-II

Thanks for explaining, Rusty-Snake-In-Pants.

as these are the only two IMO that are ambiguous. The rest are all intuitive

siteSettings isn't ambiguous once you know it, but it did require some digging which finally took me to the comment I linked above. The question for me arose because as I went through the list, seeing all the settings that are cleared and then encountering one that isn't, made me pause and wonder "why not"? There is an explanation for the others, after all, but not this one. Even this by itself would be helpful:

permissions, ETP exceptions, zoom levels, certificate exceptions, etc.

just to get a basic idea and move on with the rest of the user.js.


What about my other suggestion?

opusforlife2 avatar Aug 19 '22 18:08 opusforlife2

permissions, ETP exceptions, zoom levels, certificate exceptions, etc

actually these (cert exceptions) are kept elsewhere, AFAIK

edit this exact quote is nowhere to be found, I never quoted cert exceptions

Thorin-II avatar Aug 22 '22 10:08 Thorin-II

What about my other suggestion

really? you can't extrapolate "user" to mean "click to play"

Thorin-II avatar Aug 22 '22 10:08 Thorin-II

really? you can't extrapolate "user" to mean "click to play"

Well, no. In fact, none of the 3 options are clear, with the way the pref is named. The term "blocking policy" implies under what conditions autoplay should be allowed or blocked. But the pref is actually about the duration for which an already given autoplay exemption stays in place. It could have been blocking_duration_policy or something instead.

Because of this, the policy documentation needs to be read to understand the term used for each option. And the documentation itself is written in a slightly convoluted way and takes time to digest (which is weird because Mozilla is usually very good at simplifying things in their docs; maybe this was originally not meant to be a public document).

I would rather go with:

// user_pref("media.autoplay.blocking_policy", 2); // duration for which autoplay exemption is given if you interacted with the site

0 = until page close/reload, 1 = until timeout, 2 = none/no exemption (click-to-play only)

Even if you don't want to change the other stuff, the policy documentation itself uses the term "click-to-play" for the third option, and is much easier to understand.


this exact quote is nowhere to be found

Sorry, that wasn't meant to be read as a quote. I'll change it to a code block.

opusforlife2 avatar Aug 23 '22 17:08 opusforlife2

There was one pref, now to delete cookies have to:

user_pref("privacy.clearOnShutdown.downloads", false);
user_pref("privacy.clearOnShutdown.formdata", false);
user_pref("privacy.clearOnShutdown.history", false);
user_pref("privacy.clearOnShutdown.offlineApps", true);
user_pref("privacy.clearOnShutdown.sessions", false);
user_pref("privacy.sanitize.sanitizeOnShutdown", true);

It's not really convenient.

mik0l avatar Sep 03 '22 12:09 mik0l

None of the prefs you listed has changed. What do you try to say?


And FTR network.cookie.lifetimePolicy got removed functionally and technically.

rusty-snake avatar Sep 03 '22 12:09 rusty-snake

Is there a difference between writing one pref in user.js and six? It's cumbersome.

And the gmp-clearkey cookie is not deleted: https://github.com/arkenfox/user.js/issues/1199

mik0l avatar Sep 03 '22 12:09 mik0l

  1. Two of the prefs you listed are set to the same value in the user.js. It's useless to set them in your overrides too.
  2. You do not need any overrides to delete cookies.
  3. gmp-clearkey isn't a cookie. Your statment is just FUD.

rusty-snake avatar Sep 03 '22 13:09 rusty-snake

There was one pref, now to delete cookies have to:

user_pref("privacy.clearOnShutdown.downloads", false);
user_pref("privacy.clearOnShutdown.formdata", false);
user_pref("privacy.clearOnShutdown.history", false);
user_pref("privacy.clearOnShutdown.offlineApps", true);
user_pref("privacy.clearOnShutdown.sessions", false);
user_pref("privacy.sanitize.sanitizeOnShutdown", true);

four of those (downloads, formdata, history, sessions) have nothing to do with cookies or site data and are default true

why did you change sessions - read the user.js

as for the other two, you've always had to set those to delete on close - we always used to do it that way until I think about v91 we switched to lifetimepolicy and now back again

It's not really convenient.

FFS: how many times do you need to set things

Thorin-II avatar Sep 03 '22 13:09 Thorin-II

3. gmp-clearkey isn't a cookie. Your statment is just FUD.

What are they on the dropbox site for then?

mik0l avatar Sep 03 '22 13:09 mik0l

What has dropbox to do with this.

rusty-snake avatar Sep 03 '22 13:09 rusty-snake