1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:57:35 +00:00

LibWeb: Add XMLHttpRequest object :^)

This patch adds very basic XMLHttpRequest support to LibWeb. Here's an
example that currently works:

    var callback = function() { alert(this.responseText); }
    var xhr = new XMLHttpRequest();
    xhr.addEventListener("load", callback);
    xhr.open("GET", "http://serenityos.org/~kling/test/example.txt");
    xhr.send();

There are many limitations and bugs, but it's pretty dang awesome that
we have XHR. :^)
This commit is contained in:
Andreas Kling 2020-04-08 21:11:51 +02:00
parent b3c62d0bc8
commit 4ffac713b9
13 changed files with 546 additions and 3 deletions

View file

@ -11,6 +11,9 @@ LIBWEB_OBJS = \
Bindings/NodeWrapper.o \
Bindings/WindowObject.o \
Bindings/Wrappable.o \
Bindings/XMLHttpRequestConstructor.o \
Bindings/XMLHttpRequestPrototype.o \
Bindings/XMLHttpRequestWrapper.o \
CSS/DefaultStyleSheetSource.o \
CSS/PropertyID.o \
CSS/Selector.o \
@ -54,6 +57,7 @@ LIBWEB_OBJS = \
DOM/ParentNode.o \
DOM/Text.o \
DOM/Window.o \
DOM/XMLHttpRequest.o \
StylePropertiesModel.o \
DOMTreeModel.o \
Dump.o \