mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:57:35 +00:00
LibWeb: Fix UAF in CSSStyleSheet
CSSNamespaceRule returns a copy of a DeprecatedString, meaning that the view returned by the namespace in CSSStyleSheet is into a temporary string.
This commit is contained in:
parent
673329e1bd
commit
b7bcdf7c53
2 changed files with 6 additions and 6 deletions
|
@ -50,8 +50,8 @@ public:
|
|||
|
||||
void set_style_sheet_list(Badge<StyleSheetList>, StyleSheetList*);
|
||||
|
||||
Optional<StringView> default_namespace() const;
|
||||
Optional<StringView> namespace_uri(StringView namespace_prefix) const;
|
||||
Optional<FlyString> default_namespace() const;
|
||||
Optional<FlyString> namespace_uri(StringView namespace_prefix) const;
|
||||
|
||||
private:
|
||||
CSSStyleSheet(JS::Realm&, CSSRuleList&, MediaList&, Optional<AK::URL> location);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue