1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

Browser+WebContent+WebDriver: Move Delete Cookie to WebContent

This commit is contained in:
Timothy Flynn 2022-11-11 11:21:00 -05:00 committed by Linus Groh
parent d202999853
commit b7f21bb92e
7 changed files with 43 additions and 18 deletions

View file

@ -374,6 +374,11 @@ Tab::Tab(BrowserWindow& window)
on_set_cookie(url, cookie, source);
};
view().on_update_cookie = [this](auto& url, auto& cookie) {
if (on_update_cookie)
on_update_cookie(url, cookie);
};
view().on_get_source = [this](auto& url, auto& source) {
view_source(url, source);
};