1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

Ladybird+LibWebView: Ensure existing Inspector widgets inspect the page

If the Inspector widget already exists, be sure to inspect the page when
it is re-opened. However, this should be a no-op if the page was already
inspected (as any existing Inspector will be reset if a new page load
began).

Note this is not an issue in the AppKit chrome.
This commit is contained in:
Timothy Flynn 2023-12-10 10:09:40 -05:00 committed by Andreas Kling
parent 41ffc69c9d
commit 451df70275
3 changed files with 7 additions and 1 deletions

View file

@ -174,7 +174,9 @@ InspectorClient::~InspectorClient()
void InspectorClient::inspect()
{
m_dom_tree_loaded = false;
if (m_dom_tree_loaded)
return;
m_content_web_view.inspect_dom_tree();
m_content_web_view.inspect_accessibility_tree();
}