mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +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
@@ -433,4 +433,17 @@ String InProcessWebView::page_did_request_prompt(const String& message, const St
|
||||
return {};
|
||||
}
|
||||
|
||||
String InProcessWebView::page_did_request_cookie(const URL& url)
|
||||
{
|
||||
if (on_get_cookie)
|
||||
return on_get_cookie(url);
|
||||
return {};
|
||||
}
|
||||
|
||||
void InProcessWebView::page_did_set_cookie(const URL& url, const String& cookie)
|
||||
{
|
||||
if (on_set_cookie)
|
||||
on_set_cookie(url, cookie);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user