From dd5550dde39f177d44cd776ebca033ea99ce5749 Mon Sep 17 00:00:00 2001 From: simonkrauter Date: Wed, 7 Aug 2024 12:14:32 -0300 Subject: [PATCH] LibWebView: Remove early exit in `InspectorClient::inspect()` This early exit prevents to show the current DOM in the inspector, when the inspector was already opened. Fixes #990 --- Userland/Libraries/LibWebView/InspectorClient.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Userland/Libraries/LibWebView/InspectorClient.cpp b/Userland/Libraries/LibWebView/InspectorClient.cpp index 6b97f3b8c8b..9f51a34ae7b 100644 --- a/Userland/Libraries/LibWebView/InspectorClient.cpp +++ b/Userland/Libraries/LibWebView/InspectorClient.cpp @@ -194,8 +194,6 @@ void InspectorClient::inspect() { if (!m_inspector_loaded) return; - if (m_dom_tree_loaded) - return; m_content_web_view.inspect_dom_tree(); m_content_web_view.inspect_accessibility_tree();