mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Browser+LibWeb+WebContent: Track the source of document.cookie requests
To implement the HttpOnly attribute, the CookieJar needs to know where a request originated from. Namely, it needs to distinguish between HTTP / non-HTTP (i.e. JavaScript) requests. When the HttpOnly attribute is set, requests from JavaScript are to be blocked.
This commit is contained in:
committed by
Andreas Kling
parent
7193e518d1
commit
c00760c5f9
@@ -48,8 +48,8 @@ public:
|
||||
Function<void(DOM::Document*)> on_set_document;
|
||||
Function<void(const URL&, const String&)> on_get_source;
|
||||
Function<void(const String& method, const String& line)> on_js_console_output;
|
||||
Function<String(const URL& url)> on_get_cookie;
|
||||
Function<void(const URL& url, const String& cookie)> on_set_cookie;
|
||||
Function<String(const URL& url, Cookie::Source source)> on_get_cookie;
|
||||
Function<void(const URL& url, const String& cookie, Cookie::Source source)> on_set_cookie;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user