LibWeb: Add XHREventTarget and have XHR inherit from it

This commit is contained in:
Luke 2021-01-23 17:52:16 +00:00 committed by Andreas Kling
parent 4f2e154dbe
commit 0a1226344a
Notes: sideshowbarker 2024-07-18 22:54:47 +09:00
7 changed files with 66 additions and 4 deletions

View file

@ -43,7 +43,7 @@
namespace Web::XHR {
XMLHttpRequest::XMLHttpRequest(DOM::Window& window)
: EventTarget(static_cast<Bindings::ScriptExecutionContext&>(window.document()))
: XMLHttpRequestEventTarget(static_cast<Bindings::ScriptExecutionContext&>(window.document()))
, m_window(window)
{
}