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

Cookie clearing exceptions don't work after Arkenfox 102

Open flexagoon opened this issue 4 years ago • 36 comments

🟥 https://github.com/arkenfox/user.js/wiki/5.2-Troubleshooting

  • [x] I have read the troubleshooting guide, done the checks and confirmed this is caused by arkenfox
    • unchecked issues ~~may~~ will be closed as invalid

🟪 REQUIRED INFO

  • Browser version & OS: Firefox 102 on NixOS Unstable
  • Steps to Reproduce (STR):
    • Go to GitHub
    • Allow it to save cookies via the Ctrl+I menu
    • Log in
    • Restart Firefox
  • Expected result: You are still logged in
  • Actual result: You are no longer logged in
  • Console errors and warnings: none
  • Anything else you deem worth mentioning:
My overrides
// CONVINIENCE
// -----------------------------------------------
// Enable urlbar searching
user_pref("keyword.enabled", true); 
user_pref("browser.search.suggest.enabled", true);
user_pref("browser.urlbar.suggest.searches", true);
// Enable session restore
user_pref("browser.startup.page", 3);
// Remember the file download location
user_pref("browser.download.useDownloadDir", true);
// Don't clear history
user_pref("privacy.clearOnShutdown.history", false);
user_pref("privacy.cpd.history", false);
// Enable DRM
user_pref("media.eme.enabled", true);

// REMOVE USELESS FEATURES
// -----------------------------------------------
// Disable search engine suggestions in the urlbar
user_pref("browser.urlbar.suggest.engines", false);
// Disable container tabs
user_pref("privacy.userContext.enabled", false);
user_pref("privacy.userContext.ui.enabled", false);
// Don't save passwords
user_pref("signon.rememberSignons", false);

This worked as intended until the last version, but since v102 it no longer works.

flexagoon avatar Jul 04 '22 15:07 flexagoon

Worksforme (windows). I did have three instances where it did clear exceptions, but it seems stable now - it may be a case of not cleaning closing the app - I do use the quit button, but I did read a recent ticket about longer/munged shutdowns - IDK if that applies. Note: this non-clean shutdown sanitize issue is fixed in FF103

^ IDK if that is what is causing your issue. What app are you using - snap? flat? etc? How are you closing Firefox?

Otherwise, the only thing that sticks out is not clearing history, but that shouldn't affect it. I have not tested.

Edit: PS: don't play with the Privacy & Security>Cookies and Site Data>Delete cookies and site data when Firefox is closed checkbox, it will be unchecked and some people may keep checking that, which causes a "migration" which is not warranted. It will be fixed in future

Thorin-II avatar Jul 04 '22 21:07 Thorin-II

https://old.reddit.com/r/firefox/comments/vrswmo/firefox_v102_occasionally_losing_session_data_on/

Thorin-II avatar Jul 05 '22 08:07 Thorin-II

next time it happens, check privacy.sanitize.didShutdownSanitize

Thorin-II avatar Jul 05 '22 11:07 Thorin-II

Same issue for me, not sure how to reproduce it. Maybe something to do with the "firefox is still running - quit cancel" message? Not sure

It happened once yesterday and twice today, very irritating.

I'm on Windows, Firefox Stable build 102.0

There is no privacy.sanitize.didShutdownSanitize

All cookies are gone, exceptions were ignored

DoctorDinosaur avatar Jul 05 '22 12:07 DoctorDinosaur

@CptDinosaur firefox is still running - quit cancel - that sounds like the issue about not exiting gracefully, fixed in FF103 (when you ~~don't~~ get a clean shutdown privacy.sanitize.didShutdownSanitize would exist as true, if not then it does a sanitize on startup but doesn't respect exceptions - fixed in 103)

This is still not ideal, because you're leaving data on disk you didn't expect to

I suspect OP is the same

Thorin-II avatar Jul 05 '22 12:07 Thorin-II

Restarted with a clean shutdown and I still dont have privacy.sanitize.didShutdownSanitize

I'll try forcing a non-graceful shutdown and see if that's the cause

DoctorDinosaur avatar Jul 05 '22 12:07 DoctorDinosaur

Yes, force quitting via task manager reproduces this.

But it also happens randomly when I close then reopen, so this isn't ideal.

While waiting for v103, is there anything I can do in the meantime so I don't keep losing all my cookies?

DoctorDinosaur avatar Jul 05 '22 12:07 DoctorDinosaur

While waiting for v103, is there anything I can do in the meantime so I don't keep losing all my cookies?

Well, if it's not an ungraceful exit in some of these cases, then 103 won't fully solve it (unless it was something else that 103 fixes). In the meantime, you can't use the lifetimePolicy pref (it will just reset and migrate you), and you can't disable onShutdown and use Ctrl-Shift-Del manually when you go to bed, because that doesn't respect exceptions

Has anyone filled a bugzilla on this.

Thorin-II avatar Jul 05 '22 12:07 Thorin-II

Restarted with a clean shutdown and I still dont have privacy.sanitize.didShutdownSanitize

Maybe also set browser.sanitizer.loglevel = All. Then check the browser console (ctrl-Shift-J) on startup

Thorin-II avatar Jul 05 '22 12:07 Thorin-II

I was using FF 102 and lost my exceptions data twice because of power loss and once because of this intermittent wiping of data on graceful exits. If you're like me and have significant amounts of website exceptions, that's my advice: revert back to FF 101. Since I did this, no issues so far. I'm waiting for FF 103 to be released.

PS: I thought "101" was meant to learn the basics, not to spoil the basics (in 102.)

aleyvo avatar Jul 05 '22 13:07 aleyvo

power losses, people shutting down their machine with firefox open etc. all fall under the "ungraceful exit" umbrella which is a known issue that will be fixed (it already is in Nightly for example). we are more interested in exceptions being ignored on graceful/normal closes right? I don't think we have found a way to reliable reproduce this. that would be important, me and pants cannot reproduce this so far.

I think it would be useful if you people stick to FF102, create a new profile and apply the latest user.js to it; for example, knowing it only occurs in profiles where lifetime was set to 2 at some point would already be valuable IMO. of course feel free to say no if it sounds annoying. some questions on graceful exits:

  • do you simply close the app from the UI and that happens at times?
  • are ALL cookies cleared or only some of them?
  • exceptions still exist but they are ignored, correct?

fxbrit avatar Jul 05 '22 13:07 fxbrit

I was using FF 102 and lost my exceptions data twice because of power loss and once because of this intermittent wiping of data on graceful exits. If you're like me and have significant amounts of website exceptions, that's my advice: revert back to FF 101. Since I did this, no issues so far. I'm waiting for FF 103 to be released.

PS: I thought "101" was meant to learn the basics, not to spoil the basics (in 102.)

Can't downgrade, it won't let you use the new profile since it's been upgraded to be incompatible

DoctorDinosaur avatar Jul 05 '22 13:07 DoctorDinosaur

I'll create a test profile with a separate FF 102 installation and try to reproduce this intermittent wiping of data on graceful exits.

do you simply close the app from the UI and that happens at times?

When it occurred to me, I quit using Ctrl+Shift+Q

are ALL cookies cleared or only some of them?

All of them.

exceptions still exist but they are ignored, correct?

Exactly

aleyvo avatar Jul 05 '22 13:07 aleyvo

power losses, people shutting down their machine with firefox open etc. all fall under the "ungraceful exit" umbrella which is a known issue that will be fixed (it already is in Nightly for example). we are more interested in exceptions being ignored on graceful/normal closes right? I don't think we have found a way to reliable reproduce this. that would be important, me and pants cannot reproduce this so far.

I think it would be useful if you people stick to FF102, create a new profile and apply the latest user.js to it; for example, knowing it only occurs in profiles where lifetime was set to 2 at some point would already be valuable IMO. of course feel free to say no if it sounds annoying. some questions on graceful exits:

* do you simply close the app from the UI and that happens at times?

* are ALL cookies cleared or only some of them?

* exceptions still exist but they are ignored, correct?

I think for me it's been when I get the "Firefox is still running" error. Not sure if it's happened with fully graceful exits, don't think so? But it might have. It's happened numerous times now

All cookies are gone, checked via Cookie Quick Manager

DoctorDinosaur avatar Jul 05 '22 13:07 DoctorDinosaur

Maybe also set browser.sanitizer.loglevel = All. Then check the browser console (ctrl-Shift-J) on startup

This seems promising.

aleyvo avatar Jul 05 '22 13:07 aleyvo

Can't downgrade, it won't let you use the new profile since it's been upgraded to be incompatible

That's the downside. I had to uninstall everything, install FF 101, create a new profile with arkenfox 101, import my bookmarks, and install uBO again :/

aleyvo avatar Jul 05 '22 13:07 aleyvo

open a bugzilla you guys, and report the console data

  • it will likely show that sanitize onshutdown never fired due to a permissions/security error

Thorin-II avatar Jul 05 '22 13:07 Thorin-II

@CptDinosaur in the case of ungraceful exits it's a known issue that's fixed in 103+. if it's too annoying you could take a chance and install Beta or Nightly in the meantime I guess? not saying you absolutely should, but it works side by side with Stable, so maybe it's worth it for you.


@aleyvo thanks, I'm trying the same on macOS, no luck so far. are you on windows?

I'll stop the noise for now, if you guys open a bugzilla (you should since you had the issue at least once) please link it so I can hopefully add to it at some point.

fxbrit avatar Jul 05 '22 13:07 fxbrit

Yes, I'm on Windows.

I'll try with a portable FF or with Sandbox. If I manage to reproduce it, I'll open a bugzilla and link it here for you guys.

aleyvo avatar Jul 05 '22 13:07 aleyvo

I don't know how to reproduce it either, I just tried and it did not log me out this time. It just does it randomly sometimes.

Or maybe the times when it logged me out were actually me rebooting my computer with firefox open? I'll tell you when the issue happens next time.

flexagoon avatar Jul 05 '22 20:07 flexagoon