mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
Return cookies to the same level of working/brokenness as they had before new-cache.
svn path=/trunk/netsurf/; revision=10340
This commit is contained in:
parent
ee2a5b40ce
commit
24c853281d
@ -720,6 +720,15 @@ fetch_set_cookie(struct fetch *fetch, const char *data)
|
||||
* that the request uri and the parent domain match,
|
||||
* so don't pass in any referer/parent in this case. */
|
||||
urldb_set_cookie(data, fetch->url, NULL);
|
||||
} else if (fetch->referer != NULL) {
|
||||
/* Permit the cookie to be set if the fetch is unverifiable
|
||||
* and the fetch URI domain matches the referer. */
|
||||
/** \todo Long-term, this needs to be replaced with a
|
||||
* comparison against the origin fetch URI. In the case
|
||||
* where a nested object requests a fetch, the origin URI
|
||||
* is the nested object's parent URI, whereas the referer
|
||||
* for the fetch will be the nested object's URI. */
|
||||
urldb_set_cookie(data, fetch->url, fetch->referer);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user