1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

LibWeb: Handle javascript: URLs inside LibWeb :^)

This patch makes it possible to execute JavaScript by clicking on an
anchor element with href="javascript:your_script_here()".
This commit is contained in:
Andreas Kling 2020-04-04 22:12:37 +02:00
parent 5e40aa182b
commit 9b0bfcb8b7
4 changed files with 31 additions and 2 deletions

View file

@ -121,6 +121,8 @@ public:
JS::Interpreter& interpreter();
JS::Value run_javascript(const StringView&);
private:
virtual RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override;