LibWeb: Refuse to recursively execute .execCommand()

Spec issue:

  https://github.com/w3c/editing/issues/477
This commit is contained in:
Jelle Raaijmakers 2025-01-23 11:19:20 +01:00 committed by Andreas Kling
commit f731cffbd8
Notes: github-actions[bot] 2025-01-24 22:54:31 +00:00
4 changed files with 32 additions and 0 deletions

View file

@ -1101,6 +1101,8 @@ private:
GC::Ref<EditingHostManager> m_editing_host_manager;
bool m_inside_exec_command { false };
// https://w3c.github.io/editing/docs/execCommand/#default-single-line-container-name
FlyString m_default_single_line_container_name { HTML::TagNames::div };