Commit Graph

93 Commits

Author SHA1 Message Date
Pierre Tachoire
318e2bd1c6 dom: expose document.location 2025-01-27 12:33:05 +01:00
Pierre Tachoire
d7069df80d dom: first draft for location 2025-01-23 11:51:05 +01:00
Pierre Tachoire
11d28b0bc3 dom: add placeholder for history interface 2025-01-15 11:45:30 +01:00
Pierre Tachoire
b3f7fb7be3 dom: implement navigator.userAgent 2025-01-08 11:03:11 +01:00
Pierre Tachoire
4138c6fe95 polyfill: first draft to polyfill fetch api 2024-12-02 18:00:32 +01:00
Francis Bouvier
de286dd78e async: use zig-async-io
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-11-21 16:42:48 +01:00
Pierre Tachoire
395eb3e8ad async: add missing tests execution 2024-11-19 15:54:04 +01:00
Pierre Tachoire
7fed1f3015 async: remove pseudo-async http client 2024-11-18 17:39:37 +01:00
Pierre Tachoire
6809bb5393 async: adapt async cli 2024-11-18 17:39:37 +01:00
Pierre Tachoire
5094942560 cdp: add msg tests into zig build test 2024-11-12 12:56:30 +01:00
Francis Bouvier
46d0aa6f9e Remove all references to the name 'browsercore'
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-10-29 22:16:56 +01:00
Francis Bouvier
0f8b47b598 Move MsgBuffer in it's own file for unit test purpose
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-06-19 15:48:20 +02:00
Francis Bouvier
b8ec53f708 Adapt to js_exec changes in zig-js-runtime
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-07-18 12:10:06 +02:00
Pierre Tachoire
12111d4cdf dom: first draft for MutationObserver 2024-06-24 15:19:30 +02:00
Pierre Tachoire
f2a406d224 move netsurf and mimalloc into modules 2024-06-18 16:13:27 +02:00
Pierre Tachoire
ef364f83c8 upgrade to zig 0.12.1 2024-06-18 16:13:27 +02:00
Pierre Tachoire
00d75584db usrctx: use ctx http client with xhr 2024-05-22 14:58:48 +02:00
Pierre Tachoire
b2df0c1541 dom: implement document fragment constructor 2024-05-22 14:56:40 +02:00
Pierre Tachoire
14e1c44eb0 dom: implement comment constructor 2024-05-22 14:56:29 +02:00
Pierre Tachoire
e18d04a799 userctx: inject user context 2024-05-22 14:45:34 +02:00
Pierre Tachoire
df6a905683 dom: add target and href accessors to anchor 2024-05-14 13:44:16 +02:00
Pierre Tachoire
2a3a243d1c add AGPL license header in zig files 2024-05-13 20:51:36 +02:00
Pierre Tachoire
f7040153cd url: implement query parsing 2024-05-06 12:45:14 +02:00
Pierre Tachoire
e42b03acd8 mime: extract string parser 2024-05-06 12:44:45 +02:00
Pierre Tachoire
28a87c2a47 url: first draft 2024-05-03 16:18:11 +02:00
Pierre Tachoire
3c5d601622 storage: first implementation of webstorage API 2024-04-24 11:54:41 +02:00
Pierre Tachoire
3834ebcfa4 replace calloc with mimalloc 2024-04-19 11:46:42 +02:00
Francis Bouvier
76c88d049f setCAllocator
Replace custom malloc functions in netsurf libs with a global Zig allocator.

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-19 11:46:41 +02:00
Pierre Tachoire
e2a8a74906 Merge pull request #209 from lightpanda-io/bench
Add benchmark output when running js tests
2024-04-10 11:20:41 +02:00
Pierre Tachoire
cb2b488d27 bench: prepare v8, libdom and main metrics 2024-04-10 09:50:36 +02:00
Pierre Tachoire
a9e2569a1b bench: display duration in ms 2024-04-10 09:42:15 +02:00
Pierre Tachoire
e3f7504572 test: rename js bench into browser 2024-04-08 18:01:38 +02:00
Pierre Tachoire
d080dde361 test: bench: use pretty for console output 2024-04-08 14:54:55 +02:00
Pierre Tachoire
32349e472c test: add test arguments and expose json benchmark result 2024-04-08 14:40:52 +02:00
Pierre Tachoire
49e3d569de dom: fix processing instruction clone 2024-04-05 16:34:22 +02:00
Pierre Tachoire
d0dbbacd69 css: enable all css tests in zig build test 2024-03-18 21:22:45 +01:00
Pierre Tachoire
954a693586 css: add matcher test w/ libdom 2024-03-18 09:51:05 +01:00
Pierre Tachoire
886c9daa47 window: inject DocumentHTML instead of Document 2024-03-08 12:24:24 +01:00
Pierre Tachoire
500da5bfd8 test: run JSRuntime test func directly
Instead of calling the bultin test functions
Indeed, it causes issue with type comparison.
See https://github.com/lightpanda-io/browsercore/pull/184#issuecomment-1964369066
2024-03-08 12:24:24 +01:00
Pierre Tachoire
fec212ab94 window: use window as global object 2024-03-08 12:24:23 +01:00
Pierre Tachoire
1c77d998c6 test: refacto dump test units 2024-02-28 14:40:31 +01:00
Pierre Tachoire
10777a7b46 Merge pull request #166 from lightpanda-io/xhr
XHR
2024-02-15 16:54:06 +01:00
Pierre Tachoire
47520ae21d xhr: move progress event in its own file 2024-02-15 16:43:00 +01:00
Pierre Tachoire
6f46d76c93 xhr: implementation follow up 2024-02-15 16:42:53 +01:00
Pierre Tachoire
2b79a65d6d xhr: implement 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
f714d86bb8 xhr: validate method 2024-02-15 16:42:50 +01:00
Pierre Tachoire
069313817a netsurf: use EventTargetTBase field to cast EventTarget 2024-02-15 15:59:45 +01:00
Pierre Tachoire
9050f2586b events: add EventTargetBase
EventTargetBase implements event target vtable for pure zig struct
2024-02-05 16:41:11 +01:00
Francis Bouvier
de7fe8ba09 Add tests for Event
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-19 16:46:09 +01:00