mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:48:12 +00:00
LibWebView+WebContent: Add IPC to get all cookies for a document's URL
This commit is contained in:
parent
2d33b2996f
commit
d2c1957d8f
6 changed files with 18 additions and 0 deletions
|
@ -382,6 +382,13 @@ void OutOfProcessWebView::notify_server_did_change_favicon(Gfx::Bitmap const& fa
|
|||
on_favicon_change(favicon);
|
||||
}
|
||||
|
||||
Vector<Web::Cookie::Cookie> OutOfProcessWebView::notify_server_did_request_all_cookies(Badge<WebContentClient>, AK::URL const& url)
|
||||
{
|
||||
if (on_get_all_cookies)
|
||||
return on_get_all_cookies(url);
|
||||
return {};
|
||||
}
|
||||
|
||||
String OutOfProcessWebView::notify_server_did_request_cookie(Badge<WebContentClient>, const AK::URL& url, Web::Cookie::Source source)
|
||||
{
|
||||
if (on_get_cookie)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue