LibWeb: Add Bindings::ScriptExecutionContext

This will be inherited by documents and workers, to provide a common
abstraction for script execution. (We don't have workers yet, but we
might as well make this little space for them now to simplify things
down the road.)
This commit is contained in:
Andreas Kling 2020-09-20 19:22:44 +02:00
parent 976e55e942
commit c6ae0c41d9
Notes: sideshowbarker 2024-07-19 02:19:26 +09:00
11 changed files with 100 additions and 8 deletions

View file

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