1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:47:36 +00:00

Browser: Set parent of tab child windows

By setting the parent of the JS console, DOM inspector, view source and
download windows, they will be destroyed automatically when the main
browser window is closed.

Fixes #2373.
This commit is contained in:
Linus Groh 2021-03-27 11:12:35 +01:00 committed by Andreas Kling
parent daf85fb07b
commit 9734420dfa
2 changed files with 12 additions and 16 deletions

View file

@ -82,6 +82,8 @@ private:
Web::WebViewHooks& hooks();
void update_actions();
void update_bookmark_button(const String& url);
void start_download(const URL& url);
void view_source(const URL& url, const String& source);
Type m_type;