зеркало из https://github.com/mozilla/gecko-dev.git
bug 122126, reviewed by guha
This commit is contained in:
Родитель
971b18981e
Коммит
fa8558204f
|
@ -534,16 +534,20 @@ RDF_AddCookieResource(char* name, char* path, char* host, char* expires) {
|
|||
remoteStoreAdd(gCookieStore, hostUnit, gCoreVocab->RDF_parent, gNavCenter->RDF_Cookies,
|
||||
RDF_RESOURCE_TYPE, 1);
|
||||
}
|
||||
sprintf(url, "[%s]%s",path, name);
|
||||
sprintf(url, "cookie:%s!%s!%s", host, path, name);
|
||||
ru = RDF_GetResource(NULL, url, 1);
|
||||
setResourceType(ru, COOKIE_RT);
|
||||
remoteStoreAdd(gCookieStore, ru, gCoreVocab->RDF_parent, hostUnit, RDF_RESOURCE_TYPE, 1);
|
||||
}
|
||||
|
||||
PUBLIC void
|
||||
NET_DeleteCookie(char* cookieURL);
|
||||
|
||||
PRBool
|
||||
CookieUnassert (RDFT r, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type) {
|
||||
if (resourceType(u) == COOKIE_RT) {
|
||||
/* delete the cookie */
|
||||
NET_DeleteCookie(resourceID(u));
|
||||
remoteStoreRemove(r, u, s, v, type);
|
||||
return 1;
|
||||
} else return 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче