Bug 1251368 - add originAttributes to cookie remove call r=Ratty
The api was changed in Bug 1245184
This commit is contained in:
Родитель
04cc69d674
Коммит
b4289c82c2
|
@ -957,6 +957,7 @@ var gCookies = {
|
|||
rawHost: aCookie.rawHost,
|
||||
displayHost: gLocSvc.idn.convertToDisplayIDN(aCookie.rawHost, {}),
|
||||
path: aCookie.path,
|
||||
originAttributes: aCookie.originAttributes,
|
||||
isSecure: aCookie.isSecure,
|
||||
isSession: aCookie.isSession,
|
||||
isHttpOnly: aCookie.isHttpOnly,
|
||||
|
@ -1122,7 +1123,7 @@ var gCookies = {
|
|||
this.displayedCookies.splice(selections[i], 1);
|
||||
this.tree.treeBoxObject.rowCountChanged(selections[i], -1);
|
||||
Services.cookies.remove(delCookie.host, delCookie.name, delCookie.path,
|
||||
this.blockOnRemove.checked);
|
||||
delCookie.originAttributes, this.blockOnRemove.checked);
|
||||
}
|
||||
if (!this.displayedCookies.length)
|
||||
gDomains.removeDomainOrFlag(gDomains.selectedDomain.title, "hasCookies");
|
||||
|
|
|
@ -129,7 +129,8 @@ var cookiesTreeView = {
|
|||
};
|
||||
var cookiesTree;
|
||||
|
||||
function Cookie(id,name,value,isDomain,host,rawHost,path,isSecure,expires) {
|
||||
function Cookie(id, name, value, isDomain, host, rawHost, path,
|
||||
originAttributes, isSecure, expires) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
|
@ -137,6 +138,7 @@ function Cookie(id,name,value,isDomain,host,rawHost,path,isSecure,expires) {
|
|||
this.host = host;
|
||||
this.rawHost = rawHost;
|
||||
this.path = path;
|
||||
this.originAttributes = originAttributes;
|
||||
this.isSecure = isSecure;
|
||||
this.expires = GetExpiresString(expires);
|
||||
this.expiresSortValue = expires;
|
||||
|
@ -152,9 +154,11 @@ function loadCookies() {
|
|||
nextCookie = nextCookie.QueryInterface(Components.interfaces.nsICookie);
|
||||
var host = nextCookie.host;
|
||||
allCookies[count] =
|
||||
new Cookie(count++, nextCookie.name, nextCookie.value, nextCookie.isDomain, host,
|
||||
(host.charAt(0)==".") ? host.substring(1,host.length) : host,
|
||||
nextCookie.path, nextCookie.isSecure, nextCookie.expires);
|
||||
new Cookie(count++, nextCookie.name, nextCookie.value,
|
||||
nextCookie.isDomain, host,
|
||||
host.charAt(0)=="." ? host.slice(1) : host,
|
||||
nextCookie.path, nextCookie.originAttributes,
|
||||
nextCookie.isSecure, nextCookie.expires);
|
||||
}
|
||||
|
||||
// filter, sort and display the table
|
||||
|
@ -291,6 +295,7 @@ function FinalizeCookieDeletions() {
|
|||
cookiemanager.remove(delCookie.host,
|
||||
delCookie.name,
|
||||
delCookie.path,
|
||||
delCookie.originAttributes,
|
||||
document.getElementById("checkbox").checked);
|
||||
}
|
||||
deletedCookies.length = 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче