LibWeb: Ensure global objects are an event target

All global objects current need to be event targets so that they
can have events dispatched to them. This allows for removing of
verify_cast for these global objects.
This commit is contained in:
Shannon Booth 2024-12-03 02:37:33 +13:00 committed by Andreas Kling
commit 05b4676917
Notes: github-actions[bot] 2024-12-02 23:20:48 +00:00
6 changed files with 11 additions and 12 deletions

View file

@ -43,8 +43,8 @@ public:
virtual ~WorkerGlobalScope() override;
// ^WindowOrWorkerGlobalScopeMixin
virtual Bindings::PlatformObject& this_impl() override { return *this; }
virtual Bindings::PlatformObject const& this_impl() const override { return *this; }
virtual DOM::EventTarget& this_impl() override { return *this; }
virtual DOM::EventTarget const& this_impl() const override { return *this; }
using UniversalGlobalScopeMixin::atob;
using UniversalGlobalScopeMixin::btoa;