Bug 410863 - Removed cookies reappear when the filter is changed. r=Mano, a1.9=beltzner

This commit is contained in:
florian@queze.net 2008-01-24 22:58:09 -08:00
parent 3b8927006a
commit 3c824f9dfc

View File

@ -270,6 +270,18 @@ var gCookiesWindow = {
{
var removeCount = aCount === undefined ? 1 : aCount;
if (this._filtered) {
// remove the cookies from the unfiltered set so that they
// don't reappear when the filter is changed. See bug 410863.
for (var i = aIndex; i < aIndex + removeCount; ++i) {
var item = this._filterSet[i];
var parent = gCookiesWindow._hosts[item.rawHost];
for (var j = 0; j < parent.cookies.length; ++j) {
if (item == parent.cookies[j]) {
parent.cookies.splice(j, 1);
break;
}
}
}
this._filterSet.splice(aIndex, removeCount);
return;
}