Muki Kiboigo
a875ce4d68
copy our Request headers into the HTTP client
2025-09-17 08:45:46 -07:00
Muki Kiboigo
969bfb4e53
migrate fetch tests to htmlRunner
2025-09-17 08:45:42 -07:00
Muki Kiboigo
76dae43103
properly handle closed for ReadableStream
2025-09-17 08:45:37 -07:00
Muki Kiboigo
af75ce79ac
deinit persistent promise resolver
2025-09-17 08:45:30 -07:00
Muki Kiboigo
fe89c2ff9b
simplify cloning of Req/Resp
2025-09-17 08:45:25 -07:00
Muki Kiboigo
bb2595eca5
use call arena for json in Req/Resp
2025-09-17 08:45:20 -07:00
Muki Kiboigo
618fff0191
simplify Headers
2025-09-17 08:45:14 -07:00
Muki Kiboigo
9bbd06ce76
headers iterators should not allocate
2025-09-17 08:45:05 -07:00
Muki Kiboigo
20463a662b
use destructor callback for FetchContext
2025-09-17 08:45:00 -07:00
Muki Kiboigo
9251180501
support object as HeadersInit
2025-09-17 08:44:54 -07:00
Muki Kiboigo
2659043afd
add logging on fetch error callback
2025-09-17 08:44:47 -07:00
sjorsdonkers
7766892ad2
retain value, avoid str alloc
2025-09-17 08:44:36 -07:00
sjorsdonkers
a7848f43cd
avoid explicit memcpy
2025-09-17 08:44:31 -07:00
sjorsdonkers
cf8f76b454
remove length check of fixed size
2025-09-17 08:44:26 -07:00
sjorsdonkers
f68f184c68
jsValueToZig for fixed sized arrays
2025-09-17 08:44:12 -07:00
Muki Kiboigo
463440bce4
implement remaining ReadableStream functionality
2025-09-17 08:43:42 -07:00
Muki Kiboigo
51ee313910
working Header iterators
2025-09-17 08:43:36 -07:00
Muki Kiboigo
744b0bfff7
TypeError when Stream is locked
2025-09-17 08:43:31 -07:00
Muki Kiboigo
949479aa81
cleaning up various Headers routines
2025-09-17 08:43:22 -07:00
Muki Kiboigo
8743841145
use proper Headers in fetch()
2025-09-17 08:43:16 -07:00
Muki Kiboigo
6225cb38ae
expand Request/Response interfaces
2025-09-17 08:43:05 -07:00
Muki Kiboigo
8dcba37672
expand Headers interface
2025-09-17 08:42:59 -07:00
Muki Kiboigo
38b922df75
remove debug logging in ReadableStream
2025-09-17 08:42:50 -07:00
Muki Kiboigo
6d884382a1
move fetch() into fetch.zig
2025-09-17 08:42:41 -07:00
Muki Kiboigo
752e75e94b
add bodyUsed checks on Request and Response
2025-09-17 08:42:36 -07:00
Muki Kiboigo
5ca41b5e13
more Headers compatibility
2025-09-17 08:42:30 -07:00
Muki Kiboigo
1b3707ad33
add fetch to cdp domain
2025-09-17 08:42:20 -07:00
Muki Kiboigo
c6e82d5af6
add json response method
2025-09-17 08:42:12 -07:00
Muki Kiboigo
814e41122a
basic readable stream working
2025-09-17 08:42:07 -07:00
Muki Kiboigo
a133a71eb9
proper fetch method and body setting
2025-09-17 08:41:22 -07:00
Muki Kiboigo
dc2addb0ed
fetch callback logging
2025-09-17 08:41:16 -07:00
Muki Kiboigo
f9014bb90c
request url as null terminated
2025-09-17 08:41:11 -07:00
Muki Kiboigo
df0b6d5b07
initial fetch in zig
2025-09-17 08:40:32 -07:00
Muki Kiboigo
56c6e8be06
remove polyfill and add req/resp
2025-09-17 08:40:10 -07:00
Pierre Tachoire
b47b8297d6
Merge pull request #1021 from lightpanda-io/patchright
...
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / browser fetch (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
nightly build / build-linux-x86_64 (push) Has been cancelled
nightly build / build-linux-aarch64 (push) Has been cancelled
nightly build / build-macos-aarch64 (push) Has been cancelled
nightly build / build-macos-x86_64 (push) Has been cancelled
wpt / web platform tests json output (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
Patchright compatibility
2025-09-17 16:14:00 +02:00
Pierre Tachoire
5d1e17c598
cdp: use for...else instead of found bool
2025-09-17 14:42:08 +02:00
Pierre Tachoire
94fe34bd10
cdp: multiple isolated worlds
2025-09-17 14:42:08 +02:00
Pierre Tachoire
e68ff62723
cdp: use depth param on DOM.describeNode
2025-09-17 14:42:08 +02:00
Pierre Tachoire
04487b6b91
cdp: allow double isolated world with same world name
...
In this case we reuse the existing isolated world and isolated context
and we log a warning
2025-09-17 14:42:07 +02:00
Pierre Tachoire
49a27a67bc
cdp: send a warning for pierce parameter
2025-09-17 14:42:07 +02:00
Pierre Tachoire
745de2ede2
cdp: add Runtime.getProperties
2025-09-17 14:42:07 +02:00
Pierre Tachoire
82e5698f1d
cdp: accept neg depth in describeNode
2025-09-17 14:42:06 +02:00
Pierre Tachoire
c4090851c5
css: accept digit as name start
2025-09-17 14:42:06 +02:00
Pierre Tachoire
9cb4431e89
cdp: add initiator on request will be send
2025-09-17 14:42:06 +02:00
Pierre Tachoire
2221d0cb6f
cdp: send the chrome's error on missing node
2025-09-17 14:42:05 +02:00
Pierre Tachoire
5ea97c4910
cdp: add send error options with session id by default
2025-09-17 14:42:05 +02:00
Pierre Tachoire
a40590b4bf
cdp: add DOM.getFrameOwner
2025-09-17 14:42:00 +02:00
Karl Seguin
58acb2b821
Convert more DOM_NO_ERR cases to assertions
...
There is some risk to this change. The first is that I made a mistake. The
other is that one of the APIs that doesn't currently return an error changes
in the future.
2025-09-17 13:37:48 +08:00
Karl Seguin
6b9dc90639
Introduces an Env.String for persistent strings
...
If a webapi has a []const u8 parameter, then the page.call_arena is used. This
is our favorite arena to use, but if the string value has a lifetime beyond the
call, it then needs to be duped again (using page.arena).
When a webapi has a Env.String parameter, the page.arena will be used directly
to get the value from V8, removing the need for an intermediary dupe in the
call_arena.
This allows HTMLCollections to be streamlined. They no longer need to dupe the
filter (tag name, class name, ...), which means they can no longer fail. It also
means that we no longer need to needlessly dupe the string literals.
2025-09-17 12:12:42 +08:00
Karl Seguin
b7d26cf0d5
Merge pull request #1053 from lightpanda-io/nikneym/create-event-html-events
...
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / browser fetch (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
nightly build / build-linux-x86_64 (push) Has been cancelled
nightly build / build-linux-aarch64 (push) Has been cancelled
nightly build / build-macos-aarch64 (push) Has been cancelled
nightly build / build-macos-x86_64 (push) Has been cancelled
wpt / web platform tests json output (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
allow `HTMLEvents` in `createEvent`
2025-09-17 00:31:36 +08:00