1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 15:07:44 +00:00

Browser: Respect the HttpOnly flag when storing cookies

This commit is contained in:
Timothy Flynn 2021-04-13 17:35:26 -04:00 committed by Andreas Kling
parent c00760c5f9
commit 858ba11aef
3 changed files with 9 additions and 7 deletions

View file

@ -55,7 +55,7 @@ private:
static bool domain_matches(const String& string, const String& domain_string);
static String default_path(const URL& url);
void store_cookie(Web::Cookie::ParsedCookie& parsed_cookie, const URL& url, String canonicalized_domain);
void store_cookie(Web::Cookie::ParsedCookie& parsed_cookie, const URL& url, String canonicalized_domain, Web::Cookie::Source source);
void purge_expired_cookies();
HashMap<CookieStorageKey, Web::Cookie::Cookie> m_cookies;