1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 21:48:11 +00:00

LibWebView+WebContent: Add IPC to get a document's named cookie

This commit is contained in:
Timothy Flynn 2022-11-11 09:46:56 -05:00 committed by Linus Groh
parent c77260c480
commit c6a0888088
6 changed files with 17 additions and 0 deletions

View file

@ -389,6 +389,13 @@ Vector<Web::Cookie::Cookie> OutOfProcessWebView::notify_server_did_request_all_c
return {};
}
Optional<Web::Cookie::Cookie> OutOfProcessWebView::notify_server_did_request_named_cookie(Badge<WebContentClient>, AK::URL const& url, String const& name)
{
if (on_get_named_cookie)
return on_get_named_cookie(url, name);
return {};
}
String OutOfProcessWebView::notify_server_did_request_cookie(Badge<WebContentClient>, const AK::URL& url, Web::Cookie::Source source)
{
if (on_get_cookie)