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

Ladybird: Close inspector and JS console when tab closes

Keeping these around can lead to use-after-frees and crashes.
This commit is contained in:
MacDue 2022-12-19 13:25:49 +00:00 committed by Andrew Kaster
parent 33249c727a
commit 678dfa8f75
2 changed files with 9 additions and 5 deletions

View file

@ -192,7 +192,7 @@ private:
bool is_inspector_open() const;
void inspect_dom_tree();
void clear_inspected_dom_node();
void clear_inspector_callbacks();
void close_sub_widgets();
ErrorOr<Ladybird::DOMNodeProperties> inspect_dom_node(i32 node_id, Optional<Web::CSS::Selector::PseudoElement> pseudo_element);
qreal m_inverse_pixel_scaling_ratio { 1.0 };