mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
Browser: Allow changing of existing Cookies in the CookieJar
And attach all the plumbing through to Tab over BrowserWindow.
This commit is contained in:
parent
813ca5ebbe
commit
30360918d4
4 changed files with 35 additions and 0 deletions
|
@ -566,6 +566,10 @@ void BrowserWindow::create_new_tab(URL url, bool activate)
|
|||
m_cookie_jar.dump_cookies();
|
||||
};
|
||||
|
||||
new_tab.on_update_cookie = [this](auto const& url, auto cookie) {
|
||||
m_cookie_jar.update_cookie(url, move(cookie));
|
||||
};
|
||||
|
||||
new_tab.on_get_cookies_entries = [this]() {
|
||||
return m_cookie_jar.get_all_cookies();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue