LibWebView+WebContent: Begin supporting the DevTools JavaScript console

This supports evaluating the script and replying with the result. We
currently serialize JS objects to a string, but we will need to support
dynamic interaction with the objects over IPC. This does not yet support
sending console messages to DevTools.
This commit is contained in:
Timothy Flynn 2025-02-24 11:57:33 -05:00 committed by Andreas Kling
commit 32bc2dc7b6
Notes: github-actions[bot] 2025-02-28 12:09:35 +00:00
10 changed files with 101 additions and 2 deletions

View file

@ -96,6 +96,7 @@ private:
virtual void clear_inspected_dom_node(DevTools::TabDescription const&) const override;
virtual void highlight_dom_node(DevTools::TabDescription const&, Web::UniqueNodeID, Optional<Web::CSS::Selector::PseudoElement::Type>) const override;
virtual void clear_highlighted_dom_node(DevTools::TabDescription const&) const override;
virtual void evaluate_javascript(DevTools::TabDescription const&, String, OnScriptEvaluationComplete) const override;
static Application* s_the;