mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-31 15:32:51 +00:00
LibWebView+WebContent: Do not manually serialize cookie sources over IPC
LibIPC can serialize enumeration automatically (this was not the case when these IPCs were added).
This commit is contained in:
parent
85b8971a80
commit
9b957ead13
Notes:
sideshowbarker
2024-07-16 23:03:06 +09:00
Author: https://github.com/trflynn89
Commit: 9b957ead13
Pull-request: https://github.com/SerenityOS/serenity/pull/22951
5 changed files with 11 additions and 11 deletions
|
@ -309,17 +309,17 @@ Messages::WebContentClient::DidRequestNamedCookieResponse WebContentClient::did_
|
|||
return OptionalNone {};
|
||||
}
|
||||
|
||||
Messages::WebContentClient::DidRequestCookieResponse WebContentClient::did_request_cookie(AK::URL const& url, u8 source)
|
||||
Messages::WebContentClient::DidRequestCookieResponse WebContentClient::did_request_cookie(AK::URL const& url, Web::Cookie::Source source)
|
||||
{
|
||||
if (m_view.on_get_cookie)
|
||||
return m_view.on_get_cookie(url, static_cast<Web::Cookie::Source>(source));
|
||||
return m_view.on_get_cookie(url, source);
|
||||
return String {};
|
||||
}
|
||||
|
||||
void WebContentClient::did_set_cookie(AK::URL const& url, Web::Cookie::ParsedCookie const& cookie, u8 source)
|
||||
void WebContentClient::did_set_cookie(AK::URL const& url, Web::Cookie::ParsedCookie const& cookie, Web::Cookie::Source source)
|
||||
{
|
||||
if (m_view.on_set_cookie)
|
||||
m_view.on_set_cookie(url, cookie, static_cast<Web::Cookie::Source>(source));
|
||||
m_view.on_set_cookie(url, cookie, source);
|
||||
}
|
||||
|
||||
void WebContentClient::did_update_cookie(Web::Cookie::Cookie const& cookie)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue