mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +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:
parent
7193e518d1
commit
c00760c5f9
20 changed files with 54 additions and 47 deletions
|
@ -111,8 +111,8 @@ private:
|
|||
virtual void page_did_request_alert(const String&) override;
|
||||
virtual bool page_did_request_confirm(const String&) override;
|
||||
virtual String page_did_request_prompt(const String&, const String&) override;
|
||||
virtual String page_did_request_cookie(const URL&) override;
|
||||
virtual void page_did_set_cookie(const URL&, const String&) override;
|
||||
virtual String page_did_request_cookie(const URL&, Cookie::Source) override;
|
||||
virtual void page_did_set_cookie(const URL&, const String&, Cookie::Source) override;
|
||||
|
||||
void layout_and_sync_size();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue