mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 410863 - Removed cookies reappear when the filter is changed. r=Mano, a1.9=beltzner
This commit is contained in:
parent
3b8927006a
commit
3c824f9dfc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user