1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 19:15:07 +00:00
serenity/Userland/Libraries/LibWeb/XHR
Andreas Kling e76e8e22b5 LibWeb: Separate "event listener" from "EventListener"
I can't imagine how this happened, but it seems we've managed to
conflate the "event listener" and "EventListener" concepts from the DOM
specification in some parts of the code.

We previously had two things:

    - DOM::EventListener
    - DOM::EventTarget::EventListenerRegistration

DOM::EventListener was roughly the "EventListener" IDL type,
and DOM::EventTarget::EventListenerRegistration was roughly the "event
listener" concept. However, they were used interchangeably (and
incorrectly!) in many places.

After this patch, we now have:

    - DOM::IDLEventListener
    - DOM::DOMEventListener

DOM::IDLEventListener is the "EventListener" IDL type,
and DOM::DOMEventListener is the "event listener" concept.

This patch also updates the addEventListener() and removeEventListener()
functions to follow the spec more closely, along with the "inner invoke"
function in our EventDispatcher.
2022-02-16 22:21:45 +01: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: Separate "event listener" from "EventListener" 2022-02-16 22:21:45 +01:00
XMLHttpRequest.h LibWeb: Implement responseType and response for XHR 2022-02-16 22:48:32 +03:30
XMLHttpRequest.idl LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
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 imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30