Pierre Tachoire
27f6f4243f
Apply suggestions from code review
...
Co-authored-by: Karl Seguin <karlseguin@users.noreply.github.com >
2025-12-29 12:08:07 +01:00
Karl Seguin
dcf1d34889
Merge pull request #1292 from lightpanda-io/nikneym/script-execution-changes
...
Run microtasks after each script execution
2025-12-29 18:42:03 +08:00
Pierre Tachoire
76f30dc985
zig fmt
2025-12-29 11:40:32 +01:00
Pierre Tachoire
2d6c37fa6f
handle input selection when keydown
2025-12-29 11:40:32 +01:00
Pierre Tachoire
3e52abf471
cdp: add input.insertText
2025-12-29 11:40:27 +01:00
Pierre Tachoire
d697944b5a
add Input.select()
2025-12-29 10:35:26 +01:00
Pierre Tachoire
cf14b9e762
add Document.hasFocus placeholder
2025-12-29 10:35:05 +01:00
Halil Durak
abc89b7eae
run tasks after microtasks
...
Also removes `page.tick`.
2025-12-29 11:04:22 +03:00
Karl Seguin
dc33c4d5fd
improve console.log output when using logfmt
2025-12-29 12:58:20 +08:00
Karl Seguin
087086c308
remove some unused imports
2025-12-26 12:40:20 +08:00
Karl Seguin
05cb5221d4
Quick-check sameness in Node.isEqualNode
...
Exclusively use the not_implemented log filter.
2025-12-26 09:57:33 +08:00
Karl Seguin
0fff379ee0
dummy createAttributeNS
2025-12-26 09:30:54 +08:00
Karl Seguin
0c23818470
Merge branch 'zigdom-history-fixes' into zigdom
2025-12-26 09:19:30 +08:00
Karl Seguin
25dbac9945
event isTrusted support and better composedPath for shadowroots
2025-12-26 08:45:57 +08:00
Pierre Tachoire
7cc2c2344e
use V8 json parser with xhr/fetch webAPIs
...
The pure zig JSON parser didn't generate the same type of values than JS
JSON.parse command.
Using directly V8's JSON parser gives the assurance to have the right
JS types.
Moreover, it avoid data transformations between Zig and V8.
2025-12-25 12:50:45 +01:00
Pierre Tachoire
d50f6b830a
add Value.persist
2025-12-25 12:50:44 +01:00
Pierre Tachoire
8f2921f61f
add test for big json number with fetch/xhr
2025-12-25 12:50:44 +01:00
Karl Seguin
e9ec089f76
legacy keyboard and mouse events
2025-12-25 18:52:34 +08:00
Karl Seguin
dca99c338e
more Animation accessors
2025-12-25 17:00:27 +08:00
Karl Seguin
cc3a498294
legacy tests
2025-12-25 16:47:08 +08:00
Karl Seguin
c88cb35b84
add AbstractRange
2025-12-25 13:15:57 +08:00
Karl Seguin
8be7a9f2bc
more legacy test fixes
2025-12-25 11:39:32 +08:00
Karl Seguin
899567328e
more legacy test tweaks (mostly around CSS)
2025-12-25 10:02:04 +08:00
Karl Seguin
9f3cb4349d
more legacy test fixes
2025-12-25 09:08:01 +08:00
Karl Seguin
b2b890b8b1
Merge pull request #1294 from lightpanda-io/zigdom-history-scroll-restoration
...
backport `ScrollRestoration` to `History`
2025-12-25 07:40:33 +08:00
Karl Seguin
f266dbc171
remove unecessary task execution in legacy_tests
2025-12-25 07:35:02 +08:00
Halil Durak
b28ac8ca19
run microtasks after each script execution
...
This don't change the behavior for async and deferred scripts.
just run microtasks after a script execution
2025-12-24 21:50:44 +03:00
Muki Kiboigo
248ce4f1a8
add .skip.html to skip files in legacy tests
2025-12-24 09:04:33 -08:00
Muki Kiboigo
872ec33662
use scheduleNavigation instead of navigate
2025-12-24 09:04:33 -08:00
Muki Kiboigo
b3e6186c78
history tests pass without crash
2025-12-24 09:04:33 -08:00
Muki Kiboigo
a31497937b
use session arena instead of storing arena in Navigation
2025-12-24 09:04:25 -08:00
Karl Seguin
90088c5d7c
Merge pull request #1290 from lightpanda-io/zigdom_request_interception
...
Zigdom request interception
2025-12-25 00:40:48 +08:00
Muki Kiboigo
4c8abd4680
add scrollRestoration to History
2025-12-24 07:46:34 -08:00
Karl Seguin
a25fb4a8e4
re-enable crashing legacy tests
2025-12-24 18:41:44 +08:00
Karl Seguin
29efb467f0
Various input fixes (support for more attributes) based on legacy tests
...
AbortSignal.timeout function
LocalStorage named getter/setter
2025-12-24 18:36:46 +08:00
Karl Seguin
296fa2a2f4
Update src/http/Client.zig
...
Co-authored-by: Pierre Tachoire <pierre@lightpanda.io >
2025-12-24 16:37:16 +08:00
Karl Seguin
a9e6051867
HTMLElement.click()
2025-12-24 16:17:17 +08:00
Karl Seguin
0fcb316837
Move HTML-specific behavior from Element to HTMLElement.
2025-12-24 16:17:17 +08:00
Karl Seguin
c0704f822b
Merge pull request #1288 from lightpanda-io/pseudo-frames
...
backport frames access from Window
2025-12-24 15:51:41 +08:00
Pierre Tachoire
ba974f695d
use a better comparison
2025-12-24 08:46:46 +01:00
Karl Seguin
3ca82b9ab5
Tweak CSS
...
Give default styles to visibility properties. Unblocks various playwright
behavior
2025-12-24 15:04:06 +08:00
Karl Seguin
df4e5d859f
Enable blocking auth request interception
2025-12-24 12:19:11 +08:00
Karl Seguin
67875036c5
Rework request interception for Zigdom
...
Zigdom broke request interception. It isn't zigdom specifically, but in zigdom
we properly block the parser when executing a normal (not async, not defer)
script. This does not work well with request interception, because an
intercepted request isn't blocked on HTTP data, it's blocked on a message from
CDP. Generally, neither our Page nor ScriptManager are CDP-aware. And, even if
they were, it would be hard to break out of our parsing and return control to
the CDP server.
To fix this, we expand on the HTTP Client's basic awareness of CDP (via its
extra_socket field). The HTTP client is now able to block until an intercepted
request is continued/aborted/fulfilled. it does this by being able to ask the
CDP client to read/process data.
This does not yet work for intercepted authentication requests.
2025-12-24 11:49:05 +08:00
Karl Seguin
83f008de1f
Correctly handle setting textContent to empty for DocFrag and Element
...
Fixes an [non-critical] error on old.reddit.com
2025-12-24 11:43:43 +08:00
Karl Seguin
7183b0339b
fix crash on amazon product page
2025-12-24 08:00:26 +08:00
Karl Seguin
9969ff7165
implement html5ever append_based_on_parent_node and append_before_sibling
2025-12-24 07:37:44 +08:00
Karl Seguin
0ca97d01ac
Merge pull request #1287 from lightpanda-io/window.scrollTo
...
Add Window.scrollTo
2025-12-24 07:16:13 +08:00
Karl Seguin
9b16212d4b
Merge pull request #1285 from lightpanda-io/base_url
...
implement base_url
2025-12-24 07:09:39 +08:00
Pierre Tachoire
4d67cfa340
backport frames access from Window
2025-12-23 17:14:34 +01:00
Pierre Tachoire
2bd38608e9
throttle scroll event
2025-12-23 16:13:02 +01:00