mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibWeb+WebContent: Hook document.cookie to the backend cookie storage
This commit is contained in:
committed by
Andreas Kling
parent
e54837add5
commit
1ef48d50ff
@@ -365,6 +365,19 @@ void OutOfProcessWebView::notify_server_did_change_favicon(const Gfx::Bitmap& fa
|
||||
on_favicon_change(favicon);
|
||||
}
|
||||
|
||||
String OutOfProcessWebView::notify_server_did_request_cookie(Badge<WebContentClient>, const URL& url)
|
||||
{
|
||||
if (on_get_cookie)
|
||||
return on_get_cookie(url);
|
||||
return {};
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::notify_server_did_set_cookie(Badge<WebContentClient>, const URL& url, const String& cookie)
|
||||
{
|
||||
if (on_set_cookie)
|
||||
on_set_cookie(url, cookie);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::did_scroll()
|
||||
{
|
||||
client().post_message(Messages::WebContentServer::SetViewportRect(visible_content_rect()));
|
||||
|
||||
Reference in New Issue
Block a user