mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
Browser+WebContent+WebDriver: Move Get Named Cookie to WebContent
Instead of sending *all* cookies over IPC and filtering by name, we now filter by name from the cookie jar and send just the first matching cookie.
This commit is contained in:
parent
c6a0888088
commit
a3d6c2f6af
14 changed files with 51 additions and 57 deletions
|
@ -579,6 +579,10 @@ void BrowserWindow::create_new_tab(URL url, bool activate)
|
|||
return m_cookie_jar.get_all_cookies(url);
|
||||
};
|
||||
|
||||
new_tab.on_get_named_cookie = [this](auto& url, auto& name) {
|
||||
return m_cookie_jar.get_named_cookie(url, name);
|
||||
};
|
||||
|
||||
new_tab.on_get_cookie = [this](auto& url, auto source) -> String {
|
||||
return m_cookie_jar.get_cookie(url, source);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue