Commit Graph

20 Commits

Author SHA1 Message Date
Francis Bouvier
7bc7da5499 browser: back on createPage returning a Page (pointer)
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-10-16 14:53:11 +02:00
Francis Bouvier
ea9af210f9 Remove heap allocation for Session
And adapt to similar changes on zig-js-runtime for Env

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-10-15 15:52:48 +02:00
Francis Bouvier
efca71510a browser: put back VM is an arg for browser init
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-10-12 10:41:59 +02:00
Francis Bouvier
9c913b2e6c Move loop outside Browser
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-10-07 15:57:16 +02:00
Francis Bouvier
94d2d28806 Redirect Runtime domain to JS engine Inspector
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-10-01 17:12:08 +02:00
Pierre Tachoire
f5a2c8d303 upgrade to zig 0.12 2024-06-18 16:13:26 +02:00
Pierre Tachoire
c555c325e9 upgrade to zig 0.12
0.12.0-dev.3439+31a7f22b8
2024-06-18 16:13:26 +02:00
Pierre Tachoire
7a6d929f08 browser: add wait to run the loop 2024-05-22 15:13:23 +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
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
fec212ab94 window: use window as global object 2024-03-08 12:24:23 +01:00
Pierre Tachoire
4408c3dc5d browser: pass vm as argument 2024-01-17 18:21:57 +01:00
Pierre Tachoire
3a3da494dc get: upgrade jsruntime API changes 2024-01-17 18:21:55 +01:00
Pierre Tachoire
e625e17597 get: add --dump option 2024-01-17 18:21:54 +01:00
Pierre Tachoire
cfacfc8db7 get: dump the HTML 2024-01-17 18:21:54 +01:00
Pierre Tachoire
6ff121334f browser: refactor session and page
Now session owns the js env and the loader.
page start and stop the js session.
2024-01-17 18:21:48 +01:00
Pierre Tachoire
228f44a57d browser: add initVM/deinitVM in main 2024-01-17 18:21:48 +01:00
Pierre Tachoire
df2e6dcfc0 get: start work on get command 2024-01-17 18:21:47 +01:00