mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:07:45 +00:00
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.
This commit is contained in:
parent
6e10c2cdb7
commit
2381b19719
19 changed files with 79 additions and 26 deletions
|
@ -72,7 +72,7 @@ public:
|
|||
Function<void(Tab&)> on_tab_close_request;
|
||||
Function<void(const Gfx::Bitmap&)> on_favicon_change;
|
||||
Function<String(const URL& url, Web::Cookie::Source source)> on_get_cookie;
|
||||
Function<void(const URL& url, const String& cookie, Web::Cookie::Source source)> on_set_cookie;
|
||||
Function<void(const URL& url, const Web::Cookie::ParsedCookie& cookie, Web::Cookie::Source source)> on_set_cookie;
|
||||
Function<void()> on_dump_cookies;
|
||||
|
||||
const String& title() const { return m_title; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue