Open Bug 1544480 Opened 6 years ago Updated 2 years ago

UI confusion/preferences redundancy for clearing data on shutdown

Categories

(Firefox :: Settings UI, defect, P3)

68 Branch
defect

Tracking

()

Tracking Status
firefox-esr60 --- unaffected
firefox66 --- wontfix
firefox67 --- wontfix
firefox68 --- fix-optional

People

(Reporter: alice0775, Unassigned)

References

(Blocks 1 open bug)

Details

The problem is preferences migration?.
Same thing happens 65 from 64.

Reproducible: always

Steps To Reproduce:

  1. Start Firefox60ESR

  2. Setting 'Clear history when Firefox closes'
    2-1. Go to about:preferences#privacy > 'History' section
    2-2. Select Firefox will 'Use custom settings of history' in doropdown Switch on 'Clear history when Firefox closes' and Click on [Settings...] button
    2-4 Switch on all checkboxes and OK

  3. Start Nightly68.0a1 with same profile (simulate next ESR upgrade)

  4. Go to about:preferences#privacy > 'Cookies and Site Data' section
    --- observe checkbox status of 'Delete cookies and site data when Nightly is closed'

Actual Results:
'Delete cookies and site data when Nightly is closed' is not checked

Expected Results:
'Delete cookies and site data when Nightly is closed' should be checked

Johann or Erica, do you know if this is recoverable at this point, at least for ESR? Can we fix up the migration somehow?

Flags: needinfo?(jhofmann)
Flags: needinfo?(ewright)

I'll try to figure out what's happening here

Flags: needinfo?(ewright)

Thanks, Erica, I'm a bit swamped, so that would be really appreciated. Let me know if you need any help.

Flags: needinfo?(jhofmann)

Tentatively assigning to ewright due to comment 2, and marking this P1 since this has the potential to burn users who, at least, assume that their history is being (and will continue to be) wiped at shutdown.

Priority: -- → P1
Assignee: nobody → ewright

I finally had a chance to look into this and it seems that the "Delete cookies and site data when Nightly is closed" checkbox is new. It is also ruled by a different pref than the relevant checkboxes in the history section. When the upgrade happens, those checkboxes which were checked before remain checked, and those prefs remain on. These two prefs result in almost the same behavior.

So it seems we have some redundancy in the UI, but the user's prefs are not being lost, and cookies will continue to be removed on shutdown. This is not so much a concern only for ESR upgrades, but is a concern having a confusing UI in all cases.

I spoke with UX folks and we could potentially remove the cookies option from the history section, effectively removing the "privacy.clearOnShutdown.cookies" pref and fully replace it with "network.cookie.lifetimePolicy". The difference is that "network.cookie.lifetimePolicy" is currently used to cleanup on shutdown other components such as QuotaManager, localStorage, ServiceWorkers. reference

Oh, now I get what this is about. Yes, those two settings have always been at odds with each other but even more so now that we recently extended what the lifetimePolicy pref does to make it actually clear data on shutdown.

This absolutely needs to be cleaned up at some point, but disentangling this isn't an easy task (AFAICS) and definitely not a regression we need to fix urgently. As Erica said, your cookie clearing on shutdown will continue to work.

Assignee: ewright → nobody
Blocks: storage-v2
Priority: P1 → P3
No longer regressed by: 1501985
Summary: User confuse data sanitize preferences after upgrade Firefox to 68.0a1 from 60.6.1ESR → UI confusion/preferences redundancy for clearing data on shutdown
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.