Closed Bug 1962120 Opened 9 months ago Closed 9 months ago

cookies from IPV6 url can not be manually deleted

Categories

(Core :: Networking: Cookies, defect, P2)

Firefox 137
defect

Tracking

()

VERIFIED FIXED
140 Branch
Tracking Status
firefox140 --- verified

People

(Reporter: eslafur, Assigned: edgul)

Details

(Whiteboard: [necko-triaged][necko-priority-queue])

Attachments

(2 files)

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

Steps to reproduce:

  • access server using ipv6 url: https:// [fdee:1::1]/
  • cookie gets set
  • leave the site and go to privacy settings -> manage website data -> delete the data for the ipv6 url
  • reload the settings page and check website data

Actual results:

cookie for the URL is still present.
Extensions also fail to delete the cookie

Expected results:

cookie schould have been deleted

Do you see any error in the browser console when you try to delete them (Tools > Browser Tools > Browser Console, or menu in the top right corner (More Tools > Browser Console)?

P.S. Not sure if this belongs to Settings or Toolkit::Data Sanitization.

Component: Untriaged → Settings UI

the Browser console does not show anything when trying to delete the cookie.
I have recorded a quick video showing the behaviour and the browser console: https://www.youtube.com/watch?v=9TPgW3tMfvI

From what I can tell, about:preferences is talking to the cookie service correctly to delete this cookie, so the issue might be at a deeper level. Moving to Networking: Cookies for now.

Component: Settings UI → Networking: Cookies
Product: Firefox → Core

Ed, could you take a look at this bug?
Thanks.

Flags: needinfo?(edgul)

Reproduced with:

  • simple html page served from local python server python3 -m http.server --bind ::
  • Visited http://[::1]:8000/ with browser
  • set cookie manually via document.cookie

Note that the issue did not occur with the same server, but when browser accessed page via localhost.

I'll investigate.

Flags: needinfo?(edgul)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: -- → S3
Priority: -- → P2
Whiteboard: [necko-triaged][necko-priority-next]
Assignee: nobody → edgul
Status: NEW → ASSIGNED
Whiteboard: [necko-triaged][necko-priority-next] → [necko-triaged][necko-priority-queue]
Pushed by eguloien@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7016afc5b9f4 Fix failure to clear IPv6 hostnames from clearData dialog. r=emz https://hg.mozilla.org/integration/autoland/rev/cc75123c0d69 Added test for ipv6 fixup fix. r=emz
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
Has STR: --- → yes
QA Whiteboard: [qa-triage-done-c141/b140][qa-ver-needed-c141/b140]
Flags: qe-verify+
QA Contact: bmaris

Reproduced the issue described in comment 0 and comment 5 using an old Nightly build from 2025-04-23. Verified that using latest Nightly 141.0a1 and Firefox 140.0b1 across platforms (Windows 11, macOS 13 and Ubuntu 22.04) the cookies are successfully manually deleted for both localhost and [::1]

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triage-done-c141/b140][qa-ver-needed-c141/b140] → [qa-triage-done-c141/b140][qa-ver-done-c141/b140]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: