Linus Groh
93c0c73b9e
LibWeb: Implement XMLHttpRequest.withCredentials
2022-11-14 10:00:11 +00:00
Kenneth Myhra
d11d26ef91
LibWeb: Implement support for DOM::Document in XHR::send()
...
Co-authored-by: Linus Groh <mail@linusgroh.de>
2022-11-11 00:39:12 -07:00
Luke Wilde
6c21c72492
LibWeb: Stub XMLHttpRequest.abort
2022-11-07 14:10:41 +01:00
Kenneth Myhra
ebd93c8d57
LibWeb: Revert support for DOM::Document in XHR::send()
...
This is a manual revert of commit: 7831e62
Let's revert this until we got nested union support in our IDL
generator/parser.
2022-10-20 17:57:52 +02:00
Kenneth Myhra
7831e62955
LibWeb: Add support for DOM::Document to XHR::send()
...
This patch adds support for posting a DOM::Document using XHR::send().
2022-10-16 02:06:29 +03:30
Andrew Kaster
67ceba2e6a
LibWeb: Add Exposed attribute and IDL spec links where missing
...
The intent is to use these to autogenerate prototype declarations for
Window and WorkerGlobalScope classes.
And the spec links are just nice to have :^)
2022-10-09 10:14:57 +02:00
Linus Groh
1ace80235b
LibWeb: Move XMLHttpRequestBodyInit into Fetch
...
https://fetch.spec.whatwg.org/#typedefdef-xmlhttprequestbodyinit
2022-09-22 21:01:13 +01:00
Kenneth Myhra
9a1c27a163
LibWeb: Implement BufferSource support for XHR::send()
2022-07-22 23:08:28 +01:00
Kenneth Myhra
0a511e29d1
LibWeb: Add support for Blob to XHR::send()
2022-07-18 14:57:58 +01:00
Kenneth Myhra
247951e09c
LibWeb: Add URLSearchParams as part of union type for XHR::send()
...
This patch adds support for URLSearchParams to XHR::send() and
introduces the union type XMLHttpRequestBodyInit.
XHR::send() now has support for String and URLSearchParams.
2022-07-08 12:37:01 +02:00
Kenneth Myhra
8b42c05648
LibWeb: Add XMLHttpRequest::timeout setter and getter
2022-06-21 10:29:14 +01:00
Kenneth Myhra
69f05a66fc
LibWeb: Add XMLHttpRequest::open() overload
...
This adds the XMLHttpRequest::open(String, String, bool, String, String)
overload.
The following FIXMEs has been implemented:
- If method is not a method, then throw a "SyntaxError" DOMException.
- If the username argument is not null, set the username given parsedURL
and username.
- If the password argument is not null, set the password given parsedURL
and password.
- Set this’s synchronous flag if async is false; otherwise unset this’s
synchronous flag.
Spec comments has also been updated.
2022-04-05 22:33:44 +02:00
Idan Horowitz
f45d361f03
LibWeb: Replace ad-hoc EventHandler type with callback function typedef
2022-03-31 01:10:47 +02:00
Ali Mohammad Pur
a59800b4a0
LibWeb: Add imports to all IDL files that depend on others
2022-02-16 22:48:32 +03:30
Ali Mohammad Pur
385b07dcda
LibWeb: Implement responseType and response for XHR
...
This makes us capable of loading non-utf8 content via XHR.
2022-02-16 22:48:32 +03:30
Luke Wilde
4ccade42b7
LibWeb: Implement XMLHttpRequest.overrideMimeType
...
This allows you to ignore the Content-Type returned by the server and
always parse the content as if it's the given MIME type.
This will currently be used for allowing you to override the charset
of text responses.
2022-02-12 12:53:28 +01: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
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
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
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
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