Commit Graph
1311 Commits
Author SHA1 Message Date
Francis Bouvier bcf4083f9c Keep reference of current Page in Session
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-05-02 17:52:14 +02:00
Pierre Tachoire 4444d8a008 Merge pull request #229 from lightpanda-io/upgrade-libdom
upgrade libdom
2024-05-02 17:42:27 +02:00
Pierre Tachoire d193b73ee3 upgrade libdom 2024-05-02 17:36:44 +02:00
Pierre Tachoire 89bfc8ccdc Merge pull request #222 from lightpanda-io/webstorage
storage: first implementation of webstorage API
2024-05-02 15:35:22 +02:00
Pierre Tachoire 7c06067991 Merge pull request #214 from lightpanda-io/event-callback
Event callback
2024-05-02 15:30:08 +02:00
Pierre Tachoire 8b47d72079 event: set this arg on callback 2024-05-02 15:25:41 +02:00
Pierre Tachoire a2a0db7bc4 upgrade jsruntime 2024-05-02 15:25:41 +02:00
Pierre Tachoire 5f6e5d57c0 upgrade tests/wpt 2024-05-02 15:23:15 +02:00
Pierre Tachoire 61357ee7e0 storage: update comment about dispatch event 2024-05-02 15:21:21 +02:00
Pierre Tachoire 88106f8449 Merge pull request #226 from lightpanda-io/upgrade-jsruntime
upgrade jsruntime-lib
2024-04-30 08:54:59 +02:00
Pierre Tachoire 6f2f0af0ef upgrade jsruntime-lib 2024-04-30 08:38:53 +02:00
Pierre Tachoire eb829f4d36 Merge pull request #225 from lightpanda-io/netsurf-empty-event-type
dom: an event type can be null
2024-04-29 17:51:59 +02:00
Pierre Tachoire d155421a40 netsurf: add missing netsurf DOM errors 2024-04-29 17:42:38 +02:00
Pierre Tachoire 9f2bad7498 dom: an event type can be null
In this case we return empty string
2024-04-29 16:31:37 +02:00
Pierre Tachoire 3c5d601622 storage: first implementation of webstorage API 2024-04-24 11:54:41 +02:00
Francis Bouvier ba12945e5b Move read input from Cmd callback to allow unit tests
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-24 11:17:55 +02:00
Francis Bouvier 96906df64b Implement own protocol to handle msg size
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-23 12:48:35 +02:00
Francis Bouvier 3396c70b67 Send Runtime.executionContextCreated events in Page.navigate
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-23 10:44:33 +02:00
Francis Bouvier 28d5c682cd Use sendEvent in Runtime.executionContextCreated and expose it
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-23 10:44:03 +02:00
Francis Bouvier 7a03562a33 Typo fix Page.LifecycleEvent
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-23 10:43:11 +02:00
Francis Bouvier 4a31dd8aa3 Let Page.navigate do actually navigation
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-19 17:13:32 +02:00
Francis Bouvier 1b1b7cdfb0 Add page_life_cycle_events in CDP state
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-19 17:12:37 +02:00
Francis Bouvier 9e13ffb8ff Add sendEvent utility function
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-19 17:11:31 +02:00
Pierre Tachoire 2a94e5a69e Merge pull request #199 from lightpanda-io/c_alloc
setCAllocator
2024-04-19 12:05:56 +02:00
Francis Bouvier ed38705efd Basic version using Browser
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-19 11:57:44 +02:00
Pierre Tachoire 8e96ee337d wpt: skip tests/wpt/dom/events/remove-all-listeners.html 2024-04-19 11:55:55 +02:00
Pierre Tachoire 304a28a79d mimalloc: add strdup and strndup overrride 2024-04-19 11:48:03 +02:00
Pierre Tachoire a3e91debea deps: upgrade netsurf deps 2024-04-19 11:48:03 +02:00
Pierre Tachoire 545bcc403a ci: rebuild mimalloc if it has changed 2024-04-19 11:48:01 +02:00
Pierre Tachoire 69b5a3db15 readme: add mimalloc info 2024-04-19 11:47:04 +02:00
Pierre Tachoire 53a5326248 mimalloc: avoid mimalloc override
By default mimalloc is built to override default allocation functions.
So it is used also by v8.

This change avoid the mimalloc override to keep the native stdlib
functions.
2024-04-19 11:47:03 +02:00
Pierre Tachoire 3834ebcfa4 replace calloc with mimalloc 2024-04-19 11:46:42 +02:00
Pierre Tachoire 9363acf4ec glue mimalloc with netsurf C libs 2024-04-19 11:46:42 +02:00
Pierre Tachoire dad51a4179 upgrade libwapcaplet deps 2024-04-19 11:46:42 +02:00
Pierre Tachoire 59b2954ff4 deps: add mimalloc dependency 2024-04-19 11:46:41 +02:00
Pierre Tachoire 5e9d31b053 deps: use our fork for all netsurf deps 2024-04-19 11:46:41 +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 f0773a3ca2 Merge pull request #219 from lightpanda-io/ci-deps
ci: force netsurf build deps each time
2024-04-19 11:45:48 +02:00
Pierre Tachoire f9cff763d8 ci: disable build release on PR 2024-04-19 11:41:38 +02:00
Francis Bouvier 1a1cd0353c Add dummy Page.navigate
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-19 11:36:02 +02:00
Francis Bouvier 4f0b071c59 Fix getContent algo
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-19 11:35:47 +02:00
Pierre Tachoire 8d606d5dc5 ci: force netsurf build deps each time 2024-04-19 10:51:20 +02:00
Francis Bouvier 9ce574a1f0 Add Page.createIsolatedWorld
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-18 21:57:31 +02:00
Francis Bouvier c54b50eb0c Add Browser.setWindowBounds
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-18 21:52:06 +02:00
Francis Bouvier aec7455151 Add Emulation.setDeviceMetricsOverride
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-18 21:46:43 +02:00
Francis Bouvier c7ba567d7f Handle non-empty void params in getContent
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-18 21:45:46 +02:00
Francis Bouvier fc1b3d5397 Contextual frameTree
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-18 20:54:30 +02:00
Francis Bouvier 508741c367 Add Browser.getWindowForTarget
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-18 20:53:18 +02:00
Francis Bouvier f02de77295 Add getContent
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-18 20:38:27 +02:00
Francis Bouvier 9974b56607 Add Target.createTarget
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-18 16:43:19 +02:00