Quellcode durchsuchen

Ladybird+LibWebView: Cleanup missing callbacks in InspectorClient

This was causing reproducible crashes, when closing the inspector
window of ladybird running on macos.
Kevin Meyer vor 1 Jahr
Ursprung
Commit
f86ec46a6e
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5 1
      Userland/Libraries/LibWebView/InspectorClient.cpp

+ 5 - 1
Userland/Libraries/LibWebView/InspectorClient.cpp

@@ -173,10 +173,14 @@ InspectorClient::InspectorClient(ViewImplementation& content_web_view, ViewImple
 
 InspectorClient::~InspectorClient()
 {
-    m_content_web_view.on_received_dom_tree = nullptr;
+    m_content_web_view.on_finshed_editing_dom_node = nullptr;
     m_content_web_view.on_received_accessibility_tree = nullptr;
     m_content_web_view.on_received_console_message = nullptr;
     m_content_web_view.on_received_console_messages = nullptr;
+    m_content_web_view.on_received_dom_node_html = nullptr;
+    m_content_web_view.on_received_dom_node_properties = nullptr;
+    m_content_web_view.on_received_dom_tree = nullptr;
+    m_content_web_view.on_received_hovered_node_id = nullptr;
 }
 
 void InspectorClient::inspect()