1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 22:48:11 +00:00
serenity/Userland/Libraries/LibWeb/XHR
Luke Wilde 5aacec65ab LibWeb: Rewrite EventTarget to more closely match the spec
This isn't perfect (especially the global object situation in
activate_event_handler), but I believe it's in a much more complete
state now :^)

This fixes the issue of crashing in prepare_for_ordinary_call with the
`i < m_size` crash, as it now uses the IDL callback functions which
requires the Environment Settings Object. The environment settings
object for the callback is fetched at the time the callback is created,
for example, WrapperGenerator gets the incumbent settings object for
the callback at the time of wrapping. This allows us to remove passing
in ScriptExecutionContext into EventTarget's constructor.

With this, we can now drop ScriptExecutionContext.
2022-02-08 17:47:44 +00:00
..
EventNames.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
EventNames.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ProgressEvent.h LibWeb: Add the missing ProgressEvent IDL constructor 2021-10-01 20:14:45 +02:00
ProgressEvent.idl LibWeb: Add the missing ProgressEvent IDL constructor 2021-10-01 20:14:45 +02:00
XMLHttpRequest.cpp LibWeb: Rewrite EventTarget to more closely match the spec 2022-02-08 17:47:44 +00:00
XMLHttpRequest.h LibWeb: Rewrite EventTarget to more closely match the spec 2022-02-08 17:47:44 +00:00
XMLHttpRequest.idl LibWeb: Allow passing a (String) body to XMLHttpRequest.send() 2021-09-27 01:56:08 +02:00
XMLHttpRequestEventTarget.cpp LibWeb: Rewrite EventTarget to more closely match the spec 2022-02-08 17:47:44 +00:00
XMLHttpRequestEventTarget.h LibWeb: Rewrite EventTarget to more closely match the spec 2022-02-08 17:47:44 +00:00
XMLHttpRequestEventTarget.idl LibWeb: Add event handler attributes to XMLHttpRequestEventTarget 2021-09-19 01:43:27 +02:00