Truly independent web browser
LibWeb: Do not follow a link that the user clicks while editing it
Andreas Kling8f622733d45e
diff --git a/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp b/Libraries/LibWeb/HTML/HTMLAnchorElement.cppindex 4ac05c37535..630d20120ae 100644--- a/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp+++ b/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp@@ -49,6 +49,10 @@ bool HTMLAnchorElement::has_activation_behavior() constvoid HTMLAnchorElement::activation_behavior(Web::DOM::Event const& event){+ // INTEROP: Browsers do not follow a hyperlink that the user activates while it is being edited.+ if (event.is_trusted() && is_editable_or_editing_host())+ return;+activate_the_hyperlink(event);}