Skip to content
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

Cookies clearing after Firefox restarts even with user-overrides.js file #1532

Closed
candroid-man opened this issue Aug 30, 2022 · 12 comments
Closed
Labels

Comments

@candroid-man
Copy link

Yesterday I updated my Arkenfox configuration to the latest version, and ever since then cookies have been clearing every time I restart Firefox. However, I used the same user-overrides.js file before and after the update.

user_pref("keyword.enabled", true);
user_pref("privacy.resistFingerprinting", false);
user_pref("privacy.resistFingerprinting.letterboxing", false);
user_pref("signon.rememberSignons", false);
user_pref("privacy.clearOnShutdown.cookies", false);
user_pref("network.cookie.lifetimePolicy", 0);
user_pref("browser.newtabpage.enabled", true);
user_pref("browser.startup.page", 1);
user_pref("browser.startup.homepage", about:home);
user_pref("services.sync.prefs.sync-seen.services.sync.prefs.sync.privacy.clearOnShutdown.cookies", false);

None of the checkboxes within settings regarding the deletion of cookies are checked, so I'm really confused as to what is causing this. Is there a new pref that was added in a Firefox update?

@rusty-snake
Copy link
Contributor

rusty-snake commented Aug 30, 2022

Read the changelog #1526.

Short: Use exceptions or set privacy.clearOnShutdown.cookies=false. edit: it's set, didn'T saw it.

@rusty-snake
Copy link
Contributor

user_pref("browser.startup.homepage", about:home);

syntax error

What are the values of the relevant prefs on about:config?

@candroid-man
Copy link
Author

image

@rusty-snake
Copy link
Contributor

How did you checked the cookie clearing? Just by noticing that you are logged out somewhere or by looking at it on about:perferences?

@candroid-man
Copy link
Author

Both

@candroid-man
Copy link
Author

Also, may I ask what syntax error is there is user_pref("browser.startup.homepage", about:home);? Because it doesn't work, but I couldn't figure it out

@rusty-snake
Copy link
Contributor

rusty-snake commented Aug 30, 2022

The value must be a boolean, an integer vor a string. about:home is none oft them. You likely want "about:home".

@candroid-man
Copy link
Author

Update: It seems this issue is only affecting certain websites. ProtonMail and Piped don't get cookies saved, but sites like Reddit and GitHub do. These are just the sites I have tested, I really have no idea what could be causing this

@rusty-snake
Copy link
Contributor

Read my first comment again.


You said that you checked on about:preferences that cookies got deleted. Did you really done this? And all cookies got deleted? Apparently not.

@rusty-snake
Copy link
Contributor

GitHub handles "cross session login" with "normal" cookies.
ProtonMail handles "cross session login" with localStorage and uses session cookies for in session authentication.


And read the section in the user.js. Just search for cookie in the user.js and find it.

user.js/user.js

Lines 777 to 787 in 06bfef8

/** SANITIZE ON SHUTDOWN: RESPECTS "ALLOW" SITE EXCEPTIONS FF103+ ***/
/* 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

@candroid-man
Copy link
Author

Adding user_pref("privacy.clearOnShutdown.offlineApps", true); to my user-overrides.js file resolved the issue, thank you for the help!

@Thorin-Oakenpants
Copy link
Contributor

It's ALREADY true. So many conflicting comments about what is or was done, set, changed, confirmed

user.js/user.js

Line 787 in 0dba336

user_pref("privacy.clearOnShutdown.offlineApps", true); // Site Data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants