VOOZH about

URL: https://bugzilla.mozilla.org/show_bug.cgi?id=1768656

⇱ 1768656 - Deprecate and remove thirdparty.*sessionOnly prefs


Closed Bug 1768656 Opened 4 years ago Closed 1 year ago

Deprecate and remove thirdparty.*sessionOnly prefs

Deprecate and remove thirdparty.*sessionOnly prefs
Core
Networking: Cookies
Firefox 102
Unspecified
Unspecified
enhancement
Points:
---
RESOLVED FIXED
RESOLVED
FIXED
129 Branch
Iteration:
---
a11y-review
Accessibility Severity
Performance Impact
Size Estimate
Webcompat Priority
Webcompat Score
Tracking Status
firefox129 --- fixed
Tracking Status
relnote-firefox
thunderbird_esr115
thunderbird_esr140
firefox-esr115
firefox-esr140
firefox-esr153
firefox129
firefox152
firefox153
firefox154
---
[necko-triaged]
QA Whiteboard:
---
Has STR:
---
Change Request:
---
Bug Flags:
Signature:
None
This bug is publicly visible.

 
Reporter

Description

β€’
4 years ago

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0

Steps to reproduce:

similar to bug 1681493 Deprecate and remove network.cookie.lifetimePolicy

For most users, the concept of "session" cookies is very hard to understand ... [snip] ... Because this can already be done with sanitization preferences we effectively end up with two different ways in Firefox to clear cookies

In addition to usability concerns, having "in-memory-only" session cookie lifetime has meant adding ugly hacks

The twin prefs network.cookie.thirdparty.sessionOnly and network.cookie.thirdparty.nonsecureSessionOnly effective allow the end user to create yet another way, albeit only for third party, to clear cookies and site data

Lets remove them

Reporter

Updated

β€’
4 years ago
Component: Untriaged β†’ Networking: Cookies
Product: Firefox β†’ Core
Version: Firefox 91 β†’ Firefox 102
Reporter

Updated

β€’
4 years ago
Flags: needinfo?(cpeterson)
Reporter

Comment 1

β€’
4 years ago

thoughts? third party with dFPI isn't really a third party any more, so maybe do this after the dFPI rollout?

(In reply to Simon Mainey from comment #1)

thoughts? third party with dFPI isn't really a third party any more, so maybe do this after the dFPI rollout?

I don't know anything about the dFPI rollout plans or schedule, but the network.cookie.thirdparty.sessionOnly and network.cookie.thirdparty.nonsecureSessionOnly code was a prototype that was never enabled. I don't think there's any reason to postpone removing the code.

Flags: needinfo?(cpeterson)

Comment 3

β€’
4 years ago

(In reply to Simon Mainey from comment #1)

thoughts? third party with dFPI isn't really a third party any more, so maybe do this after the dFPI rollout?

Is this the dFPI which is part of "Strict" mode Tracking Protection, or something new/enhanced?

(In reply to Chris Peterson [:cpeterson] from comment #2)

... the network.cookie.thirdparty.sessionOnly and network.cookie.thirdparty.nonsecureSessionOnly code was a prototype that was never enabled.

Coincidentally, a Mozilla Connect post recently suggested making these preferences more visible. But if they don't work...

Reporter

Comment 4

β€’
4 years ago

(In reply to jscher2000 from comment #3)

Is this the dFPI which is part of "Strict" mode Tracking Protection, or something new/enhanced?

Bug 1731713 - Total Cookie Protection into standard mode is how I read it. Strict has extra features Standard doesn't

Reporter

Comment 5

β€’
4 years ago

(In reply to jscher2000 from comment #3)

Coincidentally, a Mozilla Connect post recently suggested making these preferences more visible. But if they don't work...

I think they work, they were just never flipped on - nonsecureSessionOnly was added in FF58 to give an idea of time. Removing them should simplify code, reduce any footguns and complexity, and present a unified message. Note: sites can still set session cookies, so IDK if that solves all of those "hacky" session workarounds

So the question really is, debunk the false dichotomy of that Mozilla Connect post (i.e it's not really third party anymore if it's partitioned) and remove. Or don't and start flipping them. Dead code is dead if it's never going to be used (by 99% of users)

I think there is an argument, beyond dFPI / TCP for making third-party cookies session bound. dFPI prevents third-parties from tracking you across different top-level sites, but it still allows for persistent storage. However, like with Bug 1681493 I suggest to use sanitize-on-shutdown instead.
If these prefs were at no point exposed via UI or enterprise policy / extension API it should be safe to remove them.

Severity: -- β†’ N/A
Priority: -- β†’ P2
Whiteboard: [necko-triaged]
Reporter

Updated

β€’
1 year ago
Blocks: old-prefs
Assignee: nobody β†’ amarchesini
Status: UNCONFIRMED β†’ ASSIGNED
Ever confirmed: true

Comment 8

β€’
1 year ago
Pushed by amarchesini@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c462dd9a69da Remove thirdparty.*sessionOnly prefs, r=cpeterson,cookie-reviewers,timhuang

Comment 9

β€’
1 year ago
bugherder
Status: ASSIGNED β†’ RESOLVED
Closed: 1 year ago
Resolution: --- β†’ FIXED
Target Milestone: --- β†’ 129 Branch
You need to log in before you can comment on or make changes to this bug.