Unable to delete cookies with Domain attributes
Categories
(DevTools :: Storage Inspector, defect, P2)
Tracking
(firefox-esr128 unaffected, firefox135 wontfix, firefox136 fixed, firefox137 fixed)
Tracking | Status | |
---|---|---|
firefox-esr128 | --- | unaffected |
firefox135 | --- | wontfix |
firefox136 | --- | fixed |
firefox137 | --- | fixed |
People
(Reporter: kodo, Assigned: nchevobbe)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0
Steps to reproduce:
- go (in private window if you want) to login.microsoftonline.com (possibly other sites also, just spotted on this one)
- open developer tools (right click-inspect)
- go to storage - cookies - right click - delete all cookies
Actual results:
Some session cookies are not deleted and stay there. Tested in Firefox 135 and 136 (currently in beta just to test, 135 stable has same behavior). You can still delete all cookies from Settings - Manage Data.
Expected results:
All cookies were deleted previously from developer tools.
Comment 1•4 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Storage Inspector' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•4 months ago
|
||
Indeed, used to work with ESR, Nicolas will take a look
Assignee | ||
Comment 3•4 months ago
|
||
This was regressed by Bug 1907570 , I'll have a look
Comment 4•4 months ago
|
||
Thanks! Confirming + P2/S3 since this is a recent regression/
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 5•4 months ago
|
||
The _removeCookies method had its own (faulty) host matching function,
which was buggy for cookies with domain.
The class already has a isCookieAtHost method, which doesn't have
the faulty check, so we use this instead.
A test case is added in browser_storage_cookies_delete_all.js.
Updated•4 months ago
|
Comment 6•4 months ago
|
||
Set release status flags based on info from the regressing bug 1907570
Comment 8•4 months ago
|
||
Backed out for causing dt failures in /browser_storage_delete.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/245390cac1b67b56860e8c69b203a4be7c06550a
Assignee | ||
Comment 9•4 months ago
|
||
the cleanup function was only handling the last opened tab and my patch make a test add a second tab. I fixed the cleanup function
Comment 10•4 months ago
|
||
Comment 11•4 months ago
|
||
bugherder |
Updated•4 months ago
|
Comment 12•4 months ago
|
||
The patch landed in nightly and beta is affected.
:nchevobbe, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox136
towontfix
.
For more information, please visit BugBot documentation.
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 13•4 months ago
|
||
The _removeCookies method had its own (faulty) host matching function,
which was buggy for cookies with domain.
The class already has a isCookieAtHost method, which doesn't have
the faulty check, so we use this instead.
A test case is added in browser_storage_cookies_delete_all.js.
Adding a new tab in the test revealed that the cleanup function was only
calling window.clear for the last opened tab, so we now do it for all the
tabs we're closing.
Original Revision: https://phabricator.services.mozilla.com/D238012
Updated•4 months ago
|
Comment 14•4 months ago
|
||
beta Uplift Approval Request
- User impact if declined: can't delete some cookies from DevTools storage panel
- Code covered by automated testing: yes
- Fix verified in Nightly: no
- Needs manual QE test: no
- Steps to reproduce for manual QE testing: -
- Risk associated with taking this patch: low
- Explanation of risk level: DevTools only fix, re-using existing helper, covered by mochitest
- String changes made/needed: -
- Is Android affected?: yes
Updated•4 months ago
|
Updated•4 months ago
|
Comment 15•4 months ago
|
||
Description
•