summaryrefslogtreecommitdiff
path: root/Userland/Applications/Browser/CookieJar.h
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-04-11 23:48:59 -0400
committerAndreas Kling <kling@serenityos.org>2021-04-12 08:57:44 +0200
commitdb2418630990343a3ea48841fd95b05379ffd8e9 (patch)
treee14739db07705221f39feead80d11d5953eccca2 /Userland/Applications/Browser/CookieJar.h
parent3d53af354eb3c5a112b8ba82d54582e29d713e77 (diff)
downloadserenity-db2418630990343a3ea48841fd95b05379ffd8e9.zip
Browser: Process Path cookie attribute
Diffstat (limited to 'Userland/Applications/Browser/CookieJar.h')
-rw-r--r--Userland/Applications/Browser/CookieJar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Applications/Browser/CookieJar.h b/Userland/Applications/Browser/CookieJar.h
index f7443b5f1c..7e2463fb68 100644
--- a/Userland/Applications/Browser/CookieJar.h
+++ b/Userland/Applications/Browser/CookieJar.h
@@ -39,6 +39,7 @@ struct Cookie {
String value;
Core::DateTime expiry_time {};
String domain {};
+ String path {};
};
class CookieJar {
@@ -48,7 +49,8 @@ public:
private:
static Optional<String> canonicalize_domain(const URL& url);
- static Optional<Cookie> parse_cookie(const String& cookie_string, String default_domain);
+ static String default_path(const URL& url);
+ static Optional<Cookie> parse_cookie(const String& cookie_string, String default_domain, String default_path);
static void parse_attributes(Cookie& cookie, StringView unparsed_attributes);
static void process_attribute(Cookie& cookie, StringView attribute_name, StringView attribute_value);
static void on_expires_attribute(Cookie& cookie, StringView attribute_value);