Commit Graph

37 Commits

Author SHA1 Message Date
Pierre Tachoire
318e2bd1c6 dom: expose document.location 2025-01-27 12:33:05 +01:00
Yannick Utard
ea39cc52b1 Fix shell main 2025-01-08 15:28:19 +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
7fed1f3015 async: remove pseudo-async http client 2024-11-18 17:39:37 +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
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
f2a406d224 move netsurf and mimalloc into modules 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
bf522937e1 shell: add missing try 2024-05-22 14:56:41 +02:00
Pierre Tachoire
e18d04a799 userctx: inject user context 2024-05-22 14:45:34 +02:00
Pierre Tachoire
2a3a243d1c add AGPL license header in zig files 2024-05-13 20:51:36 +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
886c9daa47 window: inject DocumentHTML instead of Document 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
b53d4a149c add nav web api 2024-01-17 18:21:47 +01:00
Pierre Tachoire
028cd2331f netsurf: pass encoding to the parser 2024-01-12 15:22:30 +01:00
Francis Bouvier
a5dfa6cb44 Adopt global Types changes in jsruntime
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-10 11:56:53 +01:00
Pierre Tachoire
5496e68a02 netsurf: remove documentHTMLParseFromFile 2024-01-09 11:35:18 +01:00
Pierre Tachoire
0159051b17 netsurf: remove deprecated API for parsing HTML 2024-01-08 16:02:53 +01:00
Francis Bouvier
2065d47d8e Check DOMError
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2023-11-28 17:55:49 +01:00
Francis Bouvier
b4951ffa51 Adapt to js_env.start change
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2023-11-24 19:37:45 +01:00
Francis Bouvier
c751b5f420 Update jsruntime
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2023-11-21 12:16:51 +01:00
Francis Bouvier
3c5f1b89e7 Update jsruntime + fix breaking changes
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-10-23 13:03:39 +02:00
Francis Bouvier
28b1bee241 Alias global as self and window
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-10-10 14:49:57 +02:00
Pierre Tachoire
ac8317adf4 netsurf: use parse helper 2023-10-04 18:29:35 +02:00
Pierre Tachoire
818d4f4af2 netsurf: update parseDocumentHtml breaking change 2023-10-04 18:28:01 +02:00
Pierre Tachoire
46f01e5286 netsurf: expose documentHTMLClose func 2023-10-04 18:21:35 +02:00
Pierre Tachoire
47b6d38ed3 netsurf: use idiomatic []const u8 for filename 2023-10-02 21:25:55 +02:00
Francis Bouvier
766b7b4ed8 netsurf: first adaptations
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-09-20 23:04:16 +02:00
Francis Bouvier
e6183bf300 Update to jsruntime engine interface (fix)
I forgot to update main and main_shell in previous commit.

Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-09-01 15:55:58 +02:00
Francis Bouvier
740b1a0d9c Update to jsruntime engine interface
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-08-29 20:20:57 +02:00
Francis Bouvier
2d71275a3c Change also shell and server
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-06-05 16:01:03 +02:00
Francis Bouvier
50ac87ed6a Implement HTMLDocument.createElement
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-03-16 18:22:46 +01:00
Francis Bouvier
8424f061ce Create basic TCP server for main and adapt to jsruntime arena change
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-02-08 16:03:42 +01:00
Francis Bouvier
497a1119f8 Initial commit
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-02-07 16:22:01 +01:00