mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 269799 - Clearing cookies using either Clear Private Data or the Clear All button in the privacy prefpane doesn't update the Cookies Manager until it's reopened. r=mconnor.
This commit is contained in:
parent
a2295973ec
commit
5e00cb978a
@ -155,16 +155,7 @@ Sanitizer.prototype = {
|
||||
{
|
||||
var cookieMgr = Components.classes["@mozilla.org/cookiemanager;1"]
|
||||
.getService(Components.interfaces.nsICookieManager);
|
||||
var e = cookieMgr.enumerator;
|
||||
var cookies = [];
|
||||
var cookie;
|
||||
while (e.hasMoreElements()) {
|
||||
cookie = e.getNext().QueryInterface(Components.interfaces.nsICookie);
|
||||
cookies.push(cookie);
|
||||
}
|
||||
|
||||
for (var i = 0; i < cookies.length; ++i)
|
||||
cookieMgr.remove(cookies[i].host, cookies[i].name, cookies[i].path, false);
|
||||
cookieMgr.removeAll();
|
||||
},
|
||||
|
||||
get canClear()
|
||||
|
Loading…
Reference in New Issue
Block a user