summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Page/Page.h
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-04-15 10:36:20 -0400
committerAndreas Kling <kling@serenityos.org>2021-04-16 19:19:31 +0200
commit2381b197198344544964aa19368cde2d35a35e14 (patch)
tree9aa2394c0f95113946487c72265aebe11be84b31 /Userland/Libraries/LibWeb/Page/Page.h
parent6e10c2cdb706f0f6a1a4cd600fadfa809026f622 (diff)
downloadserenity-2381b197198344544964aa19368cde2d35a35e14.zip
Browser+LibWeb+WebContent: Parse cookies in the OOP tab
To protect the main Browser process against nefarious cookies, parse the cookies out-of-process and then send the parsed result over IPC to the main process. This way, if the cookie parser blows up, only that tab will be affected.
Diffstat (limited to 'Userland/Libraries/LibWeb/Page/Page.h')
-rw-r--r--Userland/Libraries/LibWeb/Page/Page.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Page/Page.h b/Userland/Libraries/LibWeb/Page/Page.h
index dab43a39a4..e5a62e23cd 100644
--- a/Userland/Libraries/LibWeb/Page/Page.h
+++ b/Userland/Libraries/LibWeb/Page/Page.h
@@ -112,7 +112,7 @@ public:
virtual bool page_did_request_confirm(const String&) { return false; }
virtual String page_did_request_prompt(const String&, const String&) { return {}; }
virtual String page_did_request_cookie(const URL&, Cookie::Source) { return {}; }
- virtual void page_did_set_cookie(const URL&, const String&, Cookie::Source) { }
+ virtual void page_did_set_cookie(const URL&, const Cookie::ParsedCookie&, Cookie::Source) { }
protected:
virtual ~PageClient() = default;