LibWeb: Avoid invoking Trusted Types where avoidable

Prevents observably calling Trusted Types, which can run arbitrary JS,
cause crashes due to use of MUST and allow arbitrary JS to modify
internal elements.
This commit is contained in:
Luke Wilde 2025-10-31 12:30:47 +00:00 committed by Tim Flynn
parent fb9406ddcd
commit 82bd3d3891
Notes: github-actions[bot] 2025-11-06 16:46:00 +00:00
83 changed files with 407 additions and 366 deletions

View file

@ -96,12 +96,12 @@ public:
bool constructing_entry_list() const { return m_constructing_entry_list; }
void set_constructing_entry_list(bool value) { m_constructing_entry_list = value; }
WebIDL::ExceptionOr<void> set_method(String const&);
void set_method(String const&);
GC::Ref<DOM::DOMTokenList> rel_list();
String action() const;
WebIDL::ExceptionOr<void> set_action(String const&);
void set_action(String const&);
FormAssociatedElement* default_button() const;