mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-03 15:41:57 +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
Notes:
sideshowbarker
2024-07-19 07:55:49 +09:00
Author: https://github.com/awesomekling
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