Andreas Kling
a7b1c7eb16
LibWeb: Don't send a request body in XMLHttpRequest GET or HEAD
2021-10-04 00:06:48 +02:00
Andreas Kling
ed5c807c99
LibWeb: Allow passing a (String) body to XMLHttpRequest.send()
...
This patch implements the simplest form of send(body): strings.
2021-09-27 01:56:08 +02:00
Andreas Kling
0ee457dfdf
LibWeb: Provide a default DOM::EventTarget::dispatch_event()
...
All EventTarget subclasses except Window do the same exact thing in
their overrides, so let's just share an implementation in the base.
2021-09-25 23:36:43 +02:00
Andreas Kling
7ef4d75716
LibWeb: Implement XMLHttpRequest.getAllResponseHeaders()
2021-09-19 22:34:44 +02:00
Andreas Kling
dc8707527f
LibWeb: Implement XMLHttpRequest.onreadystatechange
2021-09-19 01:43:27 +02:00
Idan Horowitz
4629f2e4ad
LibWeb: Add the Web::URL namespace and move URLEncoder to it
...
This namespace will be used for all interfaces defined in the URL
specification, like URL and URLSearchParams.
This has the unfortunate side-effect of requiring us to use the fully
qualified AK::URL name whenever we want to refer to the AK class, so
this commit also fixes all such references.
2021-09-13 01:43:10 +02:00
Andreas Kling
b91c49364d
AK: Rename adopt() to adopt_ref()
...
This makes it more symmetrical with adopt_own() (which is used to
create a NonnullOwnPtr from the result of a naked new.)
2021-04-23 16:46:57 +02:00
Brian Gianforcaro
1682f0b760
Everything: Move to SPDX license identifiers in all files.
...
SPDX License Identifiers are a more compact / standardized
way of representing file license information.
See: https://spdx.dev/resources/use/#identifiers
This was done with the `ambr` search and replace tool.
ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-22 11:22:27 +02:00
Linus Groh
57ead17d54
LibWeb: Implement XMLHttpRequest.getResponseHeader()
...
This lets jQuery's AJAX functionality progress further :^)
2021-04-03 16:34:34 +02:00
Linus Groh
288b90a297
LibWeb: Implement XMLHttpRequest.status
...
This lets jQuery's AJAX functionality progress further :^)
2021-04-03 16:34:34 +02:00
Linus Groh
14058b6858
LibWeb: Use DOMException in XMLHttpRequest::send()
2021-02-20 09:14:19 +01:00
Linus Groh
70878290b9
LibWeb: Use DOMException in XMLHttpRequest::open()
2021-02-20 09:14:19 +01:00
Linus Groh
c4d8cce9a2
LibWeb: Use DOMException in XMLHttpRequest::set_request_header()
2021-02-20 09:14:19 +01:00
Linus Groh
13867600c3
LibWeb: Add constructor to XMLHttpRequest IDL interface
2021-02-17 23:45:07 +01:00
Luke
0a1226344a
LibWeb: Add XHREventTarget and have XHR inherit from it
2021-01-23 22:29:21 +01:00
Luke
4f2e154dbe
LibWeb: Flesh out existing XHR methods a bit more
...
This makes open, send and setRequestHeader a bit more spec compliant and
adds a bunch of FIXMEs for unimplemented parts.
2021-01-23 22:29:21 +01:00
Andreas Kling
8363b3ae99
LibWeb: Generate JS bindings for XMLHttpRequest from IDL :^)
...
Remove the hand-written XHR bindings in favor of generated ones.
2021-01-23 15:06:09 +01:00
Andreas Kling
5b91362d4e
LibWeb: Move XMLHttpRequest to separate XHR directory
...
In keeping with the one-directory-per-web-spec layout, let's move XHR
into its own clubhouse.
2021-01-23 11:51:36 +01:00