LibWeb: Only make certain <body> and <frameset> events apply to Window

Previously we forwarded all event handler attributes to Window from
these two elements, however, we are only supposed to forward blur,
error, focus, load, resize and scroll.
This commit is contained in:
Luke Wilde 2022-06-27 19:20:09 +01:00 committed by Linus Groh
commit ebf2184636
Notes: sideshowbarker 2024-07-17 09:52:38 +09:00
11 changed files with 37 additions and 16 deletions

View file

@ -54,7 +54,7 @@ protected:
private:
// ^HTML::GlobalEventHandlers
virtual DOM::EventTarget& global_event_handlers_to_event_target() override { return *this; }
virtual DOM::EventTarget& global_event_handlers_to_event_target(FlyString const&) override { return *this; }
enum class ContentEditableState {
True,