1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-01 11:35:37 +00:00

LibWeb: Only read enumerable keyframe properties

(cherry picked from commit c85f00e373405623ecd255c36ba63c907b44de86)
This commit is contained in:
Matthew Olsson 2024-06-07 15:38:02 -07:00 committed by Nico Weber
parent 1d47886430
commit e8034cb476

View File

@ -142,7 +142,7 @@ static WebIDL::ExceptionOr<KeyframeType<AL>> process_a_keyframe_like_object(JS::
// 4. Make up a new list animation properties that consists of all of the properties that are in both input
// properties and animatable properties, or which are in input properties and conform to the
// <custom-property-name> production.
auto input_properties = TRY(keyframe_object.internal_own_property_keys());
auto input_properties = TRY(keyframe_object.enumerable_own_property_names(JS::Object::PropertyKind::Key));
Vector<String> animation_properties;
Optional<JS::Value> all_value;