mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
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:
parent
fb9406ddcd
commit
82bd3d3891
Notes:
github-actions[bot]
2025-11-06 16:46:00 +00:00
Author: https://github.com/Lubrsi
Commit: 82bd3d3891
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6632
Reviewed-by: https://github.com/AtkinsSJ
83 changed files with 407 additions and 366 deletions
|
|
@ -21,7 +21,7 @@ public:
|
|||
String origin() const;
|
||||
|
||||
String href() const;
|
||||
WebIDL::ExceptionOr<void> set_href(String);
|
||||
void set_href(String);
|
||||
|
||||
String protocol() const;
|
||||
void set_protocol(StringView);
|
||||
|
|
@ -54,7 +54,7 @@ protected:
|
|||
virtual DOM::Document& hyperlink_element_utils_document() = 0;
|
||||
virtual DOM::Element& hyperlink_element_utils_element() = 0;
|
||||
virtual Optional<String> hyperlink_element_utils_href() const = 0;
|
||||
virtual WebIDL::ExceptionOr<void> set_hyperlink_element_utils_href(String) = 0;
|
||||
virtual void set_hyperlink_element_utils_href(String) = 0;
|
||||
virtual Optional<String> hyperlink_element_utils_referrerpolicy() const = 0;
|
||||
virtual bool hyperlink_element_utils_is_html_anchor_element() const = 0;
|
||||
virtual bool hyperlink_element_utils_is_connected() const = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue