Commit Graph

627 Commits

Author SHA1 Message Date
Pierre Tachoire
10777a7b46 Merge pull request #166 from lightpanda-io/xhr
XHR
alpha
2024-02-15 16:54:06 +01:00
Pierre Tachoire
ef1be21da9 Merge pull request #180 from lightpanda-io/eventtarget
Enforce EventTarget casting by using EventTargetTBase if available
2024-02-15 16:48:07 +01:00
Pierre Tachoire
2508dc7e9a xhr: add some logs 2024-02-15 16:43:04 +01:00
Pierre Tachoire
e927743632 browser: add log info on error 2024-02-15 16:43:04 +01:00
Pierre Tachoire
4c19dbc34f xhr: fix content-type header typo 2024-02-15 16:43:03 +01:00
Pierre Tachoire
d062d0f1b6 xhr: implement basic send data from string 2024-02-15 16:43:03 +01:00
Pierre Tachoire
d58fbe07e3 xhr: return DOM document instead of HTML document 2024-02-15 16:43:03 +01:00
Pierre Tachoire
54a807bb36 xhr: add abort func 2024-02-15 16:43:02 +01:00
Pierre Tachoire
ff754fc666 xhr: implement responseURL 2024-02-15 16:43:02 +01:00
Pierre Tachoire
34015b8f57 xhr: add reponseXML 2024-02-15 16:43:02 +01:00
Pierre Tachoire
d5e3762179 xhr: comment json and add a document test 2024-02-15 16:43:01 +01:00
Pierre Tachoire
704f12f039 xhr: fix json response 2024-02-15 16:43:01 +01:00
Pierre Tachoire
84a5233245 xhr: implement response 2024-02-15 16:43:01 +01:00
Pierre Tachoire
f22c927067 xhr: move XMLHttpEventTarget in its own file 2024-02-15 16:43:00 +01:00
Pierre Tachoire
1a448b0b32 xhr: response_type getter/setter 2024-02-15 16:43:00 +01:00
Pierre Tachoire
47520ae21d xhr: move progress event in its own file 2024-02-15 16:43:00 +01:00
Pierre Tachoire
6aa182c131 xhr: defer event destroy 2024-02-15 16:42:59 +01:00
Pierre Tachoire
e79933990d xhr: destroy allocated mem on error 2024-02-15 16:42:59 +01:00
Pierre Tachoire
76df0a1ff7 xhr: fix ProgressEvent implementation 2024-02-15 16:42:59 +01:00
Pierre Tachoire
d24df5725c xhr: use nested object for ProgressEventInit 2024-02-15 16:42:58 +01:00
Pierre Tachoire
5aafc93a03 event: add remove listener test 2024-02-15 16:42:58 +01:00
Pierre Tachoire
7323f2268a xhr: add blocked comment 2024-02-15 16:42:58 +01:00
Pierre Tachoire
4b75fd1036 xhr: rename onerr into onErr 2024-02-15 16:42:57 +01:00
Pierre Tachoire
4a9a0e5e3c xhr: progressevent accept null progressevent init 2024-02-15 16:42:57 +01:00
Pierre Tachoire
0acdadfec0 xhr: fix listeners setters 2024-02-15 16:42:57 +01:00
Pierre Tachoire
86a69da773 xhr: add ProgressEvent type 2024-02-15 16:42:56 +01:00
Pierre Tachoire
554a05d8dd xhr: fix getter/setter for callbacks 2024-02-15 16:42:56 +01:00
Pierre Tachoire
f791891314 xhr: dispatch generic events 2024-02-15 16:42:56 +01:00
Pierre Tachoire
8a61f0f454 xhr: yield each fetch steps 2024-02-15 16:42:55 +01:00
Pierre Tachoire
f3a1920d8f async: yield between fetch steps in test cli 2024-02-15 16:42:55 +01:00
Pierre Tachoire
cac1110993 xhr: add getResponseHeader 2024-02-15 16:42:55 +01:00
Pierre Tachoire
19b459b4db xhr: add status and statusText 2024-02-15 16:42:54 +01:00
Pierre Tachoire
5bd5905da7 xhr: implement responseText 2024-02-15 16:42:54 +01:00
Pierre Tachoire
3915c60913 xhr: handle response headers 2024-02-15 16:42:54 +01:00
Pierre Tachoire
6f46d76c93 xhr: implementation follow up 2024-02-15 16:42:53 +01:00
Pierre Tachoire
0693011ad3 async: remove context from loop impl init 2024-02-15 16:42:53 +01:00
Pierre Tachoire
89409a4847 xhr: add a setOnload due to a setter issue
see https://lightpanda.slack.com/archives/C05TRU6RBM1/p1706708213838989
2024-02-15 16:42:53 +01:00
Pierre Tachoire
c2bc48ba0f xhr: fix implementation errors 2024-02-15 16:42:52 +01:00
Pierre Tachoire
8b6d7d0db0 xhr: implement prototype chain correctly 2024-02-15 16:42:52 +01:00
Pierre Tachoire
af20584ff2 async: remove useless http.zig
Replace it with a tested sample implementation
2024-02-15 16:42:52 +01:00
Pierre Tachoire
2b79a65d6d xhr: implement async http client 2024-02-15 16:42:51 +01:00
Pierre Tachoire
2fa66f93fd async: refacto with comptime generation 2024-02-15 16:42:51 +01:00
Pierre Tachoire
c200f60d7d async: add pure async http client 2024-02-15 16:42:51 +01:00
Pierre Tachoire
511e9b969a async: use std http client with loop 2024-02-15 16:42:50 +01:00
Pierre Tachoire
9d26a43aa8 async: copy stdlib http client 2024-02-15 16:42:50 +01:00
Pierre Tachoire
f714d86bb8 xhr: validate method 2024-02-15 16:42:50 +01:00
Pierre Tachoire
df7d17cd30 xhr: start implementation 2024-02-15 16:42:49 +01:00
Pierre Tachoire
0ac605ab6d upgrade jsruntime 2024-02-15 16:42:49 +01:00
Pierre Tachoire
35ede4d79c netsurf: declare EventTargetTBase as extern
to guarantee the memory layout
2024-02-15 16:15:14 +01:00
Pierre Tachoire
069313817a netsurf: use EventTargetTBase field to cast EventTarget 2024-02-15 15:59:45 +01:00