LibWeb: Respect the trusted state of input events when clicking links

This commit is contained in:
Andrew Kaster 2024-01-18 12:57:12 -07:00 committed by Alexander Kalenik
parent 32fe7db69f
commit a5e1364938
Notes: sideshowbarker 2024-07-17 18:13:59 +09:00
3 changed files with 27 additions and 19 deletions

View file

@ -9,6 +9,7 @@
#include <AK/URL.h>
#include <LibWeb/Forward.h>
#include <LibWeb/HTML/EventLoop/Task.h>
#include <LibWeb/HTML/Navigable.h>
#include <LibWeb/HTML/TokenizedFeatures.h>
namespace Web::HTML {
@ -61,7 +62,7 @@ protected:
virtual void hyperlink_element_utils_queue_an_element_task(HTML::Task::Source source, Function<void()> steps) = 0;
void set_the_url();
void follow_the_hyperlink(Optional<String> hyperlink_suffix);
void follow_the_hyperlink(Optional<String> hyperlink_suffix, UserNavigationInvolvement = UserNavigationInvolvement::None);
private:
void reinitialize_url() const;