mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 18:45:08 +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:
parent
5e40aa182b
commit
9b0bfcb8b7
4 changed files with 31 additions and 2 deletions
|
@ -77,6 +77,7 @@ protected:
|
|||
private:
|
||||
virtual void did_scroll() override;
|
||||
|
||||
void run_javascript_url(const String& url);
|
||||
void layout_and_sync_size();
|
||||
void dump_selection(const char* event_name);
|
||||
Gfx::Point compute_mouse_event_offset(const Gfx::Point&, const LayoutNode&) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue