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
commit c6a0888088
Notes: sideshowbarker 2024-07-17 04:35:19 +09:00
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)