Open Bug 539499 Opened 15 years ago Updated 2 years ago

Cookie viewer does not update when individual cookies are deleted

Categories

(Firefox :: Settings UI, defect)

x86
Linux
defect

Tracking

()

People

(Reporter: bsterne, Unassigned)

Details

The cookie viewer apparently does not listen for deleted-cookie events and its list can therefore grow arbitrarily large if a page is setting cookies in a loop. To reproduce: 1. create a page that runs for (var i = 0 ; i < 100 ; i++) document.cookie = Math.random + "=foo"; 2. open the cookie viewer, add a filter for the hostname serving the page 3. load the page 4. watch the list grow to 100 Note that closing the cookie viewer and reopening it does show that the network.cookie.maxPerHost limit is being enforced.
The cookieviewer should also listen for cookie eviction events, which present themselves as a batch deletion. And reload events, as well. http://mxr.mozilla.org/mozilla-central/source/netwerk/cookie/public/nsICookieService.idl#54 has the whole list.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.