summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLBodyElement.h
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2022-06-27 19:20:09 +0100
committerLinus Groh <mail@linusgroh.de>2022-06-29 21:21:50 +0100
commitebf21846369745618e3749fb3c111bf354b0abf7 (patch)
treec0513b6ac8ee8736db96ab02e3794dab245baef7 /Userland/Libraries/LibWeb/HTML/HTMLBodyElement.h
parenta50a48f6b4fe0a6784122f9afe35f6388075b4d5 (diff)
downloadserenity-ebf21846369745618e3749fb3c111bf354b0abf7.zip
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLBodyElement.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLBodyElement.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLBodyElement.h b/Userland/Libraries/LibWeb/HTML/HTMLBodyElement.h
index 2aef6df4d5..21e9b3a2ef 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLBodyElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLBodyElement.h
@@ -22,7 +22,7 @@ public:
private:
// ^HTML::GlobalEventHandlers
- virtual EventTarget& global_event_handlers_to_event_target() override;
+ virtual EventTarget& global_event_handlers_to_event_target(FlyString const& event_name) override;
RefPtr<CSS::ImageStyleValue> m_background_style_value;
};