More cookie fixes
* Add some error handling in NetworkCookie and don't add broken cookies (or should I say crumbs?) to the cookie jar * More control on the path and domain, as well as the expiration time We now pass Opera cookie testsuite functionality tests, as well as some of the negative tests (we even do better than curl). Not going further right now as this works well enough for positive cases and most security/privacy issues are fixed (cross domain and cross path cookie setting or spying).
This commit is contained in:
@@ -31,8 +31,8 @@ public:
|
||||
// Modify the cookie fields
|
||||
BNetworkCookie& SetName(const BString& name);
|
||||
BNetworkCookie& SetValue(const BString& value);
|
||||
BNetworkCookie& SetDomain(const BString& domain);
|
||||
BNetworkCookie& SetPath(const BString& path);
|
||||
status_t SetDomain(const BString& domain);
|
||||
status_t SetPath(const BString& path);
|
||||
BNetworkCookie& SetMaxAge(int32 maxAge);
|
||||
BNetworkCookie& SetExpirationDate(time_t expireDate);
|
||||
BNetworkCookie& SetExpirationDate(BDateTime& expireDate);
|
||||
@@ -99,9 +99,9 @@ private:
|
||||
BString fDomain;
|
||||
BString fPath;
|
||||
BDateTime fExpiration;
|
||||
status_t fInitStatus;
|
||||
bool fSecure;
|
||||
bool fHttpOnly;
|
||||
|
||||
bool fHostOnly;
|
||||
bool fSessionCookie;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user