Determine desired interaction between sessionStorage and cookie permissions/preferences
Categories
(Core :: DOM: Core & HTML, task, P2)
Tracking
()
People
(Reporter: nika, Unassigned)
References
Details
(Keywords: dev-doc-needed, Whiteboard: dom-triaged[storage-v2])
Reporter | ||
Comment 1•9 years ago
|
||
Comment 3•9 years ago
|
||
Comment 4•9 years ago
|
||
Reporter | ||
Comment 5•9 years ago
|
||
Comment 6•9 years ago
|
||
Updated•9 years ago
|
Comment 8•9 years ago
|
||
Comment 9•9 years ago
|
||
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
Comment 13•9 years ago
|
||
Reporter | ||
Comment 14•9 years ago
|
||
Reporter | ||
Comment 15•9 years ago
|
||
Comment 16•9 years ago
|
||
Comment 17•9 years ago
|
||
Comment 18•9 years ago
|
||
Comment 19•9 years ago
|
||
Comment 20•9 years ago
|
||
Comment 21•9 years ago
|
||
Comment 22•9 years ago
|
||
Comment 23•9 years ago
|
||
Comment 24•9 years ago
|
||
Comment 25•8 years ago
|
||
Comment 26•8 years ago
|
||
Reporter | ||
Comment 27•8 years ago
|
||
Comment 28•8 years ago
|
||
Comment 29•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 30•7 years ago
|
||
Comment 31•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 32•7 years ago
|
||
Comment 33•7 years ago
|
||
Comment 34•7 years ago
|
||
Comment 35•7 years ago
|
||
Comment 36•7 years ago
|
||
Comment 37•7 years ago
|
||
Comment 38•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 39•7 years ago
|
||
Comment 40•6 years ago
|
||
Comment 41•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 42•6 years ago
|
||
Because of the anti-tracking project, we took decisions about when sessionStorage should be allowed and when it should not be.
The current settings are:
sessionStorage:
- allowed if cookieBehavior is BEHAVIOR_ACCEPT (similarly for cookie permission set to ACCESS_ALLOW).
- disallowed if cookieBehavior set to BEHAVIOR_REJECT. Same result with cookie permission set to ACCESS_DENY.
- allowed If cookieBehavior is BEHAVIOR_REJECT_FOREIGN or BEHAVIOR_LIMIT_FOREIGN for both first and third parties.
- disallowed if cookieBehavior is set to BEHAVIOR_REJECT_TRACKER and the window is a 3rd party tracking context.
- always allowed for system principal contexts
localStorage:
- allowed if cookieBehavior is BEHAVIOR_ACCEPT (similarly for cookie permission set to ACCESS_ALLOW).
- disallowed if cookieBehavior set to BEHAVIOR_REJECT. Same result with cookie permission set to ACCESS_DENY.
- disallowed If cookieBehavior is BEHAVIOR_REJECT_FOREIGN or BEHAVIOR_LIMIT_FOREIGN for third parties. Allowed for first parties.
- disallowed if cookieBehavior is set to BEHAVIOR_REJECT_TRACKER and the window is a 3rd party tracking context.
- always allowed for system principal contexts
When I say 'disallowed' I mean that window.sessionStorage and window.localStorage getters throw SecurityError exception.
So, the only difference is that, for cookieBehavior BEHAVIOR_REJECT_FOREIGN or BEHAVIOR_LIMIT_FOREIGN, sessionStorage is allowed for 3rd party contexts. When this happens, sessionStorage will be in 'session only' mode and it will not make 'persistent' by session restore.
maybe we can close this bug.
Comment 43•5 years ago
|
||
- allowed If cookieBehavior is BEHAVIOR_REJECT_FOREIGN or BEHAVIOR_LIMIT_FOREIGN for both first and third parties.
- disallowed if cookieBehavior is set to BEHAVIOR_REJECT_TRACKER and the window is a 3rd party tracking context.
The former part still doesn't really make sense to me but I'm not willing to die on this hill anymore :)
Updated•2 years ago
|
Comment 44•2 years ago
|
||
In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.
Updated•2 years ago
|
Updated•2 years ago
|
Comment 45•2 years ago
|
||
Hello Tim !
baku's comment 42 wrote the decisions from our anti-tracking project and suggested we can close it. Can you please confirm if we're good to close this bug ? Thanks!
Comment 46•2 years ago
|
||
I think we can close the bug, and I want to add more context regarding BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN
.
sessionStorage:
allowed in a first-party context and partitioned in a third-party context. And disallowed if the window is a 3rd party tracking context.
localStorage:
allowed in a first-party context and partitioned in a third-party context. And disallowed if the window is a 3rd party tracking context.
Updated•2 years ago
|
Description
•