LibWeb: Pass along the init dictionary for error / buffer change events

Otherwise, information stored in the base event init dictionary will be
dropped.
This commit is contained in:
Timothy Flynn 2025-03-24 15:52:41 -04:00 committed by Andreas Kling
commit 2e5e5d3816
Notes: github-actions[bot] 2025-03-25 07:55:13 +00:00
5 changed files with 24 additions and 6 deletions

View file

@ -17,8 +17,8 @@ WebIDL::ExceptionOr<GC::Ref<BufferedChangeEvent>> BufferedChangeEvent::construct
return realm.create<BufferedChangeEvent>(realm, type, event_init);
}
BufferedChangeEvent::BufferedChangeEvent(JS::Realm& realm, AK::FlyString const& type, BufferedChangeEventInit const&)
: DOM::Event(realm, type)
BufferedChangeEvent::BufferedChangeEvent(JS::Realm& realm, AK::FlyString const& type, BufferedChangeEventInit const& event_init)
: DOM::Event(realm, type, event_init)
{
}