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

@ -21,17 +21,17 @@ public:
virtual ~HTMLMeterElement() override;
double value() const;
WebIDL::ExceptionOr<void> set_value(double);
void set_value(double);
double min() const;
WebIDL::ExceptionOr<void> set_min(double value);
void set_min(double value);
double max() const;
WebIDL::ExceptionOr<void> set_max(double value);
void set_max(double value);
double low() const;
WebIDL::ExceptionOr<void> set_low(double value);
void set_low(double value);
double high() const;
WebIDL::ExceptionOr<void> set_high(double value);
void set_high(double value);
double optimum() const;
WebIDL::ExceptionOr<void> set_optimum(double value);
void set_optimum(double value);
// ^HTMLElement
virtual void inserted() override;