From 1380dbeef35bfb43705ebf4447eb9e4cad411840 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sun, 4 Apr 2021 11:45:39 -0400 Subject: [PATCH] LibWeb: Protect RadioButton and TextNode against mutating DOM RadioButton had some protection, but also needed to be protected against click events originating from its associated label. --- Userland/Libraries/LibWeb/Layout/RadioButton.cpp | 3 +++ Userland/Libraries/LibWeb/Layout/TextNode.cpp | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/Userland/Libraries/LibWeb/Layout/RadioButton.cpp b/Userland/Libraries/LibWeb/Layout/RadioButton.cpp index 1574c86096..f20b5b338e 100644 --- a/Userland/Libraries/LibWeb/Layout/RadioButton.cpp +++ b/Userland/Libraries/LibWeb/Layout/RadioButton.cpp @@ -115,6 +115,9 @@ void RadioButton::handle_associated_label_mousedown(Badge