mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02: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:
Notes:
github-actions[bot]
2025-05-08 15:22:46 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/f0ce4f43a6e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4654
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user