mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 04:07:51 +00:00
LibDevTools: Begin supporting the JavaScript console
This implements enough to execute JavaScript and reply with the result. We do not yet support autocomplete or eager evaluation.
This commit is contained in:
parent
37f07c176a
commit
6d33b70e61
Notes:
github-actions[bot]
2025-02-28 12:09:40 +00:00
Author: https://github.com/trflynn89
Commit: 6d33b70e61
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3686
8 changed files with 170 additions and 7 deletions
|
@ -35,6 +35,9 @@ public:
|
|||
|
||||
virtual void highlight_dom_node(TabDescription const&, Web::UniqueNodeID, Optional<Web::CSS::Selector::PseudoElement::Type>) const { }
|
||||
virtual void clear_highlighted_dom_node(TabDescription const&) const { }
|
||||
|
||||
using OnScriptEvaluationComplete = Function<void(ErrorOr<JsonValue>)>;
|
||||
virtual void evaluate_javascript(TabDescription const&, String, OnScriptEvaluationComplete) const { }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue