-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
103: UI: Delete cookies and site data when Firefox is closed #1489
Comments
Delete cookies and site data when Firefox is closed
UI
I'm wondering If it is responsible for |
I noticed the same issue. |
You didn't say which FF version you are on, and this is not a troubleshooting issue. Read OP. In FF102 a "migration" happens (on startup) if you have The annoying part is that the UI is not aligned until FF103. It is explained here: 1777419#c3
@NotSnowyy closing manually is the same as |
This sounds nasty for ESR users, since v102 is the current ESR version. I hope Mozilla will backport the UI alignment into ESR v102. |
https://bugzilla.mozilla.org/show_bug.cgi?id=1681495#a46403609_24572 .. this is what lead me to think 102 wasn't going to have the migration https://bugzilla.mozilla.org/show_bug.cgi?id=1777419#c3 confirms that, saying they didn't back it all out - i.e this was meant to be a 103 change https://bugzilla.mozilla.org/show_bug.cgi?id=1777419#c4 looks like that's what they intend to do - so yeah, looks like ESR will be different somewhat, so .. well, ummm .. fuck |
I am using FF 102.
Well this and reading the OP properly makes more sense... |
Manually means the app closes gracefully (and gets to Anyway, this will explain it - https://bugzilla.mozilla.org/show_bug.cgi?id=1771024 - fixed in 103 so startup sanitizing also respects exceptions |
|
yes, the UA is correct. RFP only spoofs the version for android in FF102+, as 102 |
Does anyone know if I think what I'm trying to ask is: Should I also toggle |
the default value of that pref is |
AFAIK the only onShutdown stuff they hooked up to exceptions is cookies (
|
https://bugzilla.mozilla.org/show_bug.cgi?id=1765533 - they need to redesign the UI |
why the confused face 🐟 |
I don't understand why firefox is still sold on handling "cookies and site data" and the rest of "clear on shutdown" in two different places in the UI, it would make sense to have it all together I guess? edit: that scheme in the bugzilla is nice |
yes, it also enables cache as said in OP
as stated in #1491
and mentioned in #1441 (comment)
and I thought I posted 1777419#c9 already somewhere
Of course NONE of that happens if lifetimePolicy = 0, so you can choose what you want (and don't fucking toggle that checkbox) |
The migration also takes into account if custom history was already enabled. If it wasn't, then it clears the other items: history, forms + downloads, site exceptions, etc, so users don't lose any data. If it was, then it leaves those other items as they were |
The current 2812 pref The 2811 pref |
It's become clear that people don't equate Here's a very quick idea: nits welcome
click if you dare
/*** [SECTION 2800]: SHUTDOWN & SANITIZING ***/
user_pref("_user.js.parrot", "2800 syntax error: the parrot's bleedin' demised!");
/* 2810: enable Firefox to clear items on shutdown
* [SETTING] Privacy & Security>History>Custom Settings>Clear history when Firefox closes | Settings ***/
user_pref("privacy.sanitize.sanitizeOnShutdown", true);
/** SANITIZE ON SHUTDOWN: ALL OR NOTHING ***/
/* 2811: set/enforce what items to clear on shutdown (if 2810 is true) [SETUP-CHROME]
* [NOTE] If "history" is true, downloads will also be cleared
* [NOTE] "sessions": Active Logins: refers to HTTP Basic Authentication [1], not logins via cookies
* [1] https://en.wikipedia.org/wiki/Basic_access_authentication ***/
user_pref("privacy.clearOnShutdown.cache", true); // [DEFAULT: true]
user_pref("privacy.clearOnShutdown.downloads", true); // [DEFAULT: true]
user_pref("privacy.clearOnShutdown.formdata", true); // [DEFAULT: true]
user_pref("privacy.clearOnShutdown.history", true); // [DEFAULT: true]
user_pref("privacy.clearOnShutdown.sessions", true); // [DEFAULT: true]
// user_pref("privacy.clearOnShutdown.siteSettings", false); // [DEFAULT: false]
/* 2812: set Session Restore to clear on shutdown (if 2810 is true) [FF34+]
* [NOTE] Not needed if Session Restore is not used (0102) or it is already cleared with history (2811)
* [NOTE] If true, this prevents resuming from crashes (also see 5008) ***/
// user_pref("privacy.clearOnShutdown.openWindows", true);
/** SANITIZE ON SHUTDOWN: RESPECTS "ALLOW" SITE EXCEPTIONS FF102+ ***/
/* 2815: set "Cookies" and "Site Data" to clear on shutdown (if 2810 is true) [SETUP-CHROME]
* [NOTE] Exceptions: A "cookie" block permission also controls "offlineApps" (see note below).
* serviceWorkers require an "Allow" permission. For cross-domain logins, add exceptions for
* both sites e.g. https://www.youtube.com (site) + https://accounts.google.com (single sign on)
* [NOTE] "offlineApps": Offline Website Data: localStorage, service worker cache, QuotaManager (IndexedDB, asm-cache)
* [WARNING] Be selective with what sites you "Allow", as they also disable partitioning (1767271)
* [SETTING] to add site exceptions: Ctrl+I>Permissions>Cookies>Allow (when on the website in question)
* [SETTING] to manage site exceptions: Options>Privacy & Security>Permissions>Settings ***/
user_pref("privacy.clearOnShutdown.cookies", true); // Cookies
user_pref("privacy.clearOnShutdown.offlineApps", true); // Site Data
/* 2816: set cache to clear on exit [FF96+]
* [NOTE] We already disable disk cache (1001) and clear on exit (2811) which is more robust
* [1] https://bugzilla.mozilla.org/1671182 ***/
// user_pref("privacy.clearsitedata.cache.enabled", true);
/** SANITIZE MANUAL: ALL OR NOTHING ***/
/* 2820: reset default items to clear with Ctrl-Shift-Del [SETUP-CHROME]
* This dialog can also be accessed from the menu History>Clear Recent History
* Firefox remembers your last choices. This will reset them when you start Firefox
* [NOTE] Regardless of what you set "downloads" to, as soon as the dialog
* for "Clear Recent History" is opened, it is synced to the same as "history" ***/
user_pref("privacy.cpd.cache", true); // [DEFAULT: true]
user_pref("privacy.cpd.formdata", true); // [DEFAULT: true]
user_pref("privacy.cpd.history", true); // [DEFAULT: true]
user_pref("privacy.cpd.sessions", true); // [DEFAULT: true]
user_pref("privacy.cpd.offlineApps", false); // [DEFAULT: false]
user_pref("privacy.cpd.cookies", false);
// user_pref("privacy.cpd.downloads", true); // not used, see note above
// user_pref("privacy.cpd.openWindows", false); // Session Restore
// user_pref("privacy.cpd.passwords", false);
// user_pref("privacy.cpd.siteSettings", false);
/* 2822: reset default "Time range to clear" for "Clear Recent History" (2820)
* Firefox remembers your last choice. This will reset the value when you start Firefox
* 0=everything, 1=last hour, 2=last two hours, 3=last four hours, 4=today
* [NOTE] Values 5 (last 5 minutes) and 6 (last 24 hours) are not listed in the dropdown,
* which will display a blank value, and are not guaranteed to work ***/
user_pref("privacy.sanitize.timeSpan", 0); |
isn't it the one showing when you click Cookies and Site Data > Clear Data?
this SR talk reminded me we should check the overrides again, #1293 (comment) relied on the lifetime pref which is gone. worth re-testing. |
oooh .. #1293 (comment) has the link to the moz dev comment I mentioned about the mess with sanitizing and expectations
it did? well fuck, best YOU and rusty et al had better test it then :) |
just going to wing it in the 103 PR |
In 102 it still controls the lifetime cookie pref, and checking will trigger another migration. Currently 102 has that in deprecated
In 103 it changes: we need to add the UI info back into section 2800 - see 1681495
The text was updated successfully, but these errors were encountered: