Commit Graph

680 Commits

Author SHA1 Message Date
Francis Bouvier
5e1fe656e8 send Target.attachedToTarget after Target.setAutoAttach
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-15 21:34:00 +02:00
Francis Bouvier
ffbfd36502 Add stringify function in cdp
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-15 21:33:32 +02:00
Francis Bouvier
e908cb0ec4 Use send as normal behavior in cmdCallback
+ add nanoseconds param in sendLater

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-15 21:32:14 +02:00
Francis Bouvier
95a64b7696 Handle concurrent calls to sendLater
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-15 17:57:33 +02:00
Francis Bouvier
cfd6fc9532 Working sendLater (I/O timeout)
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-15 17:36:22 +02:00
Francis Bouvier
defab0c774 Free msg at the right place
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-15 15:52:13 +02:00
Francis Bouvier
babac692d5 Remove alloc from CmdContext struct
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-15 15:47:19 +02:00
Francis Bouvier
c57bb9ef72 WIP: CDP
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-15 12:14:33 +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
d58045c330 Merge pull request #196 from lightpanda-io/css
css: implement css query
2024-04-05 10:57:41 +02:00
Pierre Tachoire
52d3f3e966 deps: remove lexbor 2024-03-28 11:13:17 +01:00
Pierre Tachoire
8eb4de9ccb css: ensure node is an element before accessing to attr 2024-03-26 11:08:25 +01:00
Pierre Tachoire
4d5f6d42fa dom: use the css matcher for DOM 2024-03-26 10:25:50 +01:00
Pierre Tachoire
0fa49b99bf css: add README 2024-03-25 18:35:28 +01:00
Pierre Tachoire
4c50b2af1a css: implement legend siblings check for :disabled 2024-03-25 17:56:28 +01:00
Pierre Tachoire
4e61a50946 css: add isEmptyText in node interface 2024-03-25 17:56:28 +01:00
Pierre Tachoire
2c7650cdb1 css: add isDocument, isText and isComment 2024-03-25 17:38:21 +01:00
Pierre Tachoire
8a91840783 css: comment :contains test 2024-03-25 17:09:55 +01:00
Pierre Tachoire
dcc7e51556 css: implement ~, + and > combinators 2024-03-25 17:09:11 +01:00
Pierre Tachoire
565d612abb css: trim attribute op value 2024-03-25 15:40:23 +01:00
Pierre Tachoire
e7738744cb css: add libdom tests 2024-03-25 15:39:59 +01:00
Pierre Tachoire
de9d253dc9 css: implement missing pseudo classes
:input :empty :root :link :enabled :disabled :checked
2024-03-25 14:48:08 +01:00
Pierre Tachoire
2671cda98f css: implement :lang match 2024-03-25 11:43:32 +01:00
Pierre Tachoire
bd899111d5 css: implement :only-child and :only-of-type 2024-03-25 10:25:46 +01:00
Pierre Tachoire
db5d933285 css: add nth- pseudo class 2024-03-25 08:50:57 +01:00
Pierre Tachoire
9c997ec86d css: add pseudo class relative match 2024-03-19 09:25:52 +01:00
Pierre Tachoire
75e80a47e6 css: implement group, compound and start combined match 2024-03-18 21:23:37 +01:00
Pierre Tachoire
d0dbbacd69 css: enable all css tests in zig build test 2024-03-18 21:22:45 +01:00
Pierre Tachoire
a2e747002b css: use parseSelectorGroup() with parse() 2024-03-18 21:22:45 +01:00
Pierre Tachoire
5e8ec4532d css: add attribute matcher 2024-03-18 16:01:46 +01:00
Pierre Tachoire
d64fffc5b3 css: implement id and class match selector 2024-03-18 12:48:03 +01:00
Pierre Tachoire
4629e8a9eb css: check if node is an html element 2024-03-18 11:36:06 +01:00
Pierre Tachoire
7839f466ea css: refacto test 2024-03-18 11:35:47 +01:00
Pierre Tachoire
954a693586 css: add matcher test w/ libdom 2024-03-18 09:51:05 +01:00
Pierre Tachoire
b59fd9b1fb css: matcher draft 2024-03-15 16:09:16 +01:00
Pierre Tachoire
a131e96ed5 css: lower case parse function 2024-03-15 15:03:55 +01:00
Pierre Tachoire
d9c76aa13e css: extract public api on its own file 2024-03-15 09:06:59 +01:00
Pierre Tachoire
6cf805360d css: extract selector in its own file 2024-03-15 08:59:41 +01:00
Pierre Tachoire
97c8053010 css: implement css query parser 2024-03-14 16:40:35 +01:00
Pierre Tachoire
a7efadabf5 browser: display js err trace on debug mode 2024-03-08 17:42:55 +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
6777ab9f3d dump: handle void HTML elements 2024-02-29 15:50:03 +01:00