mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
LibWeb+WebContent: Hook document.cookie to the backend cookie storage
This commit is contained in:
parent
e54837add5
commit
1ef48d50ff
12 changed files with 66 additions and 5 deletions
|
@ -208,4 +208,14 @@ void PageHost::page_did_request_image_context_menu(const Gfx::IntPoint& content_
|
|||
m_client.post_message(Messages::WebContentClient::DidRequestImageContextMenu(content_position, url, target, modifiers, bitmap->to_shareable_bitmap()));
|
||||
}
|
||||
|
||||
String PageHost::page_did_request_cookie(const URL& url)
|
||||
{
|
||||
return m_client.send_sync<Messages::WebContentClient::DidRequestCookie>(url)->cookie();
|
||||
}
|
||||
|
||||
void PageHost::page_did_set_cookie(const URL& url, const String& cookie)
|
||||
{
|
||||
m_client.post_message(Messages::WebContentClient::DidSetCookie(url, cookie));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue