1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

Browser: Sanitize user-provided URLs with LibWebView

This commit is contained in:
Timothy Flynn 2023-10-13 10:31:52 -04:00 committed by Tim Flynn
parent aa5cd24c90
commit d2c7e1ea7d
6 changed files with 31 additions and 93 deletions

View file

@ -29,8 +29,8 @@ public:
GUI::TabWidget& tab_widget();
Tab& active_tab();
Tab& create_new_tab(URL, Web::HTML::ActivateTab activate);
void create_new_window(URL);
Tab& create_new_tab(URL const&, Web::HTML::ActivateTab activate);
void create_new_window(URL const&);
GUI::Action& go_back_action() { return *m_go_back_action; }
GUI::Action& go_forward_action() { return *m_go_forward_action; }
@ -51,7 +51,7 @@ public:
void broadcast_window_size(Gfx::IntSize);
private:
BrowserWindow(WebView::CookieJar&, URL);
BrowserWindow(WebView::CookieJar&, Vector<URL> const&);
void build_menus();
ErrorOr<void> load_search_engines(GUI::Menu& settings_menu);