mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibWeb: Make unknown webkit pseudo-elements safe to dump
This fixes a couple of crashes when dumping the style sheets on ladybird.org
This commit is contained in:
parent
0925a32558
commit
f0ce4f43a6
Notes:
github-actions[bot]
2025-05-08 15:22:46 +00:00
Author: https://github.com/AtkinsSJ
Commit: f0ce4f43a6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4654
2 changed files with 7 additions and 2 deletions
|
@ -525,8 +525,13 @@ PseudoElementMetadata pseudo_element_metadata(PseudoElement pseudo_element)
|
|||
});
|
||||
|
||||
generator.append(R"~~~(
|
||||
case PseudoElement::KnownPseudoElementCount:
|
||||
case PseudoElement::UnknownWebKit:
|
||||
return {
|
||||
.parameter_type = PseudoElementMetadata::ParameterType::None,
|
||||
.is_valid_as_function = false,
|
||||
.is_valid_as_identifier = true,
|
||||
};
|
||||
case PseudoElement::KnownPseudoElementCount:
|
||||
break;
|
||||
}
|
||||
VERIFY_NOT_REACHED();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue