Closed Bug 1907570 Opened 2 years ago Closed 1 year ago

Retrieve and handle cookies from both unpartitioned and partitioned cookie jars

Categories

(DevTools :: Storage Inspector, task)

task

Tracking

(firefox135 fixed)

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

Attachments

(1 external file)

From https://phabricator.services.mozilla.com/D210169:

we need to change the way how we get cookies because CHIPS changes the availability of partitioned and unpartitioned cookies to documents.
if the same cookie gets set to partitioned and unpartitioned cookie jars. For example, the document sets both abc=123 and abc=123; Partitioned; Secure; SameSite=None, we should have two entries on the cookie panel

Note that editing and removing cookie from the UI should also manipulate the cookie from the correct cookie jar

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Depends on: 1909405
Attachment #9412472 - Attachment description: Bug 1907570 - [devtools] Retrieve cookies from partitioned and unpartitioned cookies jars. r=timhuang! → Bug 1907570 - [devtools] Retrieve cookies for a given host from different jars. r=timhuang!
Attachment #9412472 - Attachment description: Bug 1907570 - [devtools] Retrieve cookies for a given host from different jars. r=timhuang! → Bug 1907570 - [devtools] Retrieve cookies for a given host from different jars. r=#devtools-reviewers,timhuang!
Flags: needinfo?(tihuang)
Flags: needinfo?(tihuang)

Currently (even without CHIPS and the partitioned flag), it seems like that only the partitioned cookies are shown in the Storage Inspector and the top-level cookies are not accessible at all.

Steps:

  • Set a cookie here: https://storage-access-api-demo.glitch.me/ foo=top-level
  • Visit https://storage-access-api-demo-site-b.glitch.me/
  • Open storage tools and go to the storage-access-api-demo.glich.me entry: it is empty
  • Click on refresh cookies on the page and allow the SAA grant: now foo=top-level should be visible in the iframe
  • Refresh the cookie panel: still empty
  • Add a cookie there: foo=partitioned: displayed in the cookie panel
  • Click on refresh cookies on the page: now foo=top-level;foo=partitioned should be visible in the iframe
  • The cookie panel still only has the foo=partitioned cookie

It would be great to show both sets of cookies and maybe display the top-level set greyed-out or something similar if they are not accessible (if SAA was not (yet) granted).

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/47e971e1e3f4 [devtools] Retrieve cookies for a given host from different jars. r=timhuang,devtools-reviewers,ochameau
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
Regressions: 1947240
See Also: → 2056089
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: