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

Browser: React to favicon notifications and put favicons in the tabs!

This commit is contained in:
Andreas Kling 2020-04-24 22:28:05 +02:00
parent 53cb5325ee
commit 682f0ac93b
3 changed files with 16 additions and 0 deletions

View file

@ -154,6 +154,11 @@ Tab::Tab()
on_title_change(m_title);
};
m_html_widget->on_favicon_change = [this](auto& bitmap) {
if (on_favicon_change)
on_favicon_change(bitmap);
};
auto focus_location_box_action = GUI::Action::create("Focus location box", { Mod_Ctrl, Key_L }, [this](auto&) {
m_location_box->select_all();
m_location_box->set_focus(true);