1
0
Fork 0
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:
Sam Atkins 2025-05-08 11:48:34 +01:00
parent 0925a32558
commit f0ce4f43a6
Notes: github-actions[bot] 2025-05-08 15:22:46 +00:00
2 changed files with 7 additions and 2 deletions

View file

@ -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();