Karl Seguin
f464e89415
Merge pull request #1034 from lightpanda-io/persistent-promise
...
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
Clean Up Persistent Promises in Dynamic Import
2025-09-10 08:39:50 +08:00
Karl Seguin
cdc439c4ef
Merge pull request #1026 from lightpanda-io/network_idle_500ms_delay
...
Send NetworkIdle and NetworkAlmostIdle notifications after 500ms delay
2025-09-10 08:22:34 +08:00
Karl Seguin
746168f9ed
Merge pull request #1031 from lightpanda-io/migrate_some_tests_8
...
migrate more tests to htmlRunner
2025-09-10 08:22:21 +08:00
Karl Seguin
5ad4885102
Merge pull request #1028 from lightpanda-io/wpt_runner_tweak
...
Try to address WPT running OOM
2025-09-10 08:22:08 +08:00
Muki Kiboigo
7eb53ca2bc
deinit persistent in dynamic import
2025-09-09 15:02:26 -07:00
Karl Seguin
56b08bddd8
migrate more tests to htmlRunner
2025-09-09 20:40:19 +08:00
Karl Seguin
2ed8a1c0ec
Merge pull request #1030 from lightpanda-io/update_libdom
...
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
this was already updated, but subsequent PR (by me) accidentally reve…
2025-09-09 19:53:54 +08:00
Pierre Tachoire
389dff7031
Merge pull request #1029 from lightpanda-io/remove_telemetry_debug_output
...
Remove a std.debug.print
2025-09-09 13:48:20 +02:00
Karl Seguin
123d69e595
this was already updated, but subsequent PR (by me) accidentally reverted it
2025-09-09 19:44:54 +08:00
Karl Seguin
4ab7fe26fc
Merge pull request #1025 from lightpanda-io/migrate_some_tests_7
...
migrate more tests to htmlRunner
2025-09-09 19:41:56 +08:00
Karl Seguin
0aa1e0200f
Merge branch 'wpt' into wpt_runner_tweak
2025-09-09 19:24:36 +08:00
Karl Seguin
575f827958
disable telemetry when running WPT action
2025-09-09 19:23:31 +08:00
Karl Seguin
7136851893
Remove a std.debug.print
...
Probably added in the Zig 0.15 migration. Sorry.
2025-09-09 19:19:36 +08:00
Karl Seguin
67935b11c9
Try to address WPT running OOM
...
- Continue to reuse the Browser/Env/Isolate, but no start a new session per test.
- Test http server now properly closes the sendFile fd
- Run WPT in ReleaseMode
- Add --quiet option to WPT and some commented out debug code for dumping v8
memory stats
2025-09-09 19:15:35 +08:00
Pierre Tachoire
85f60cbc7b
Merge pull request #1027 from lightpanda-io/libcurl-readme
...
add libcurl in the readme
2025-09-09 11:24:55 +02:00
Pierre Tachoire
9c35f8a24e
add libcurl in the readme
2025-09-09 11:22:56 +02:00
Karl Seguin
9971de2ccd
Send NetworkIdle and NetworkAlmostIdle notifications after 500ms delay
...
Like Chrome, the NetworkIdle and NetworkAlmostIdle will only be sent if the
condition (no network requests / <= 2 network requests) holds for at least 500ms
Also merged runHighPriority and runLowPriority as they are now always run
together (but we still only block/wait for high priority tasks).
2025-09-09 14:06:03 +08:00
Karl Seguin
1ca8dc0ac0
Merge pull request #1022 from lightpanda-io/slot
...
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
Start working on HTMLSlotElement
2025-09-09 11:52:04 +08:00
Karl Seguin
85d148822e
migrate more tests to htmlRunner
2025-09-09 11:48:08 +08:00
Karl Seguin
1e738dcf79
Merge pull request #1023 from lightpanda-io/migrate_some_tests_6
...
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
migrate more tests to htmlRunner
2025-09-08 20:58:41 +08:00
Karl Seguin
b5ffd8d046
Merge pull request #1024 from lightpanda-io/run_distant_tasks
...
Ability to run tasks even in the "distant" future.
2025-09-08 20:58:30 +08:00
Karl Seguin
21e354d252
Ability to run tasks even in the "distant" future.
...
We previously ignored tasks scheduled more than 5 seconds away. These tasks are
now scheduled on the low priority queue. This means that they won't stop a
page.wait for returning, but they'll still [eventually] be run if page.wait is
called multiple times.
Practically, this means that they'll never be run in `fetch` mode, but they
might be run from CDP if the driver waits.
Make queue names consistent, primary => high_priority, secondary => low_priority
(the same names used by the page)
2025-09-08 18:55:48 +08:00
Karl Seguin
15628d9b07
migrate more tests to htmlRunner
2025-09-08 18:40:59 +08:00
Karl Seguin
950182986a
Start working on HTMLSlotElement
2025-09-08 17:36:45 +08:00
Pierre Tachoire
bc82023878
Merge pull request #1020 from lightpanda-io/inline_script_ignore_defer
...
e2e-test / zig build release (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / zig test (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 / browser fetch (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
Inline script tags ignore defer/async
2025-09-05 17:44:45 +02:00
Pierre Tachoire
d5363e5993
Merge pull request #1018 from lightpanda-io/fix_screen_event_target_prototype
...
Fix the Screen and ScreenOrientation prototype
2025-09-05 17:44:09 +02:00
Pierre Tachoire
80adee8558
Merge pull request #1017 from lightpanda-io/fix_async_script_processing
...
Fix blockingGet during blockingGet
2025-09-05 17:43:40 +02:00
Pierre Tachoire
37fe6a661b
Merge pull request #1013 from lightpanda-io/reset_request_method
...
Reset CURLOPT_CUSTOMREQUEST for each request
2025-09-05 17:43:30 +02:00
Karl Seguin
eb453f471b
Inline script tags ignore defer/async
...
According to MDN, inline script tags should not have defer/async attributes. But
some do. This ignores those attributes for inline script tags.
(Previously, we were only half ignoring them. We were treating them as inline,
but flagging them as deferred or async, which was causing issues with cleanup)
Fixes: https://github.com/lightpanda-io/browser/issues/1014
2025-09-05 23:23:31 +08:00
Karl Seguin
afd278ca4e
Fix the Screen and ScreenOrientation prototype
2025-09-05 19:08:07 +08:00
Karl Seguin
ca8877da2d
Fix blockingGet during blockingGet
...
ScriptManager should only ever has one in-flight blockingGet. The is_blocking
flag is used to assert this, as well as enforce it in evaluate(). If is_blocking
is true, evaluate() exits.
This doesn't work for async scripts however, as they aren't executed via
evaluate(), but rather execute directly once complete.
This PR changes the execution behavior of async scripts. They are now only
executed in evaluate() (and thus won't execute when is_blocking == true).
However, unlike normal/deferred scripts, async scripts continue to execute in
their completion order (not their declared order).
Fixes https://github.com/lightpanda-io/browser/issues/1016
2025-09-05 18:17:55 +08:00
Pierre Tachoire
42828c64fb
Merge pull request #1012 from lightpanda-io/cdp_detached
...
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
Don't assume that page events means the BrowserContext has a page
2025-09-05 10:19:18 +02:00
Karl Seguin
6600626f4f
Reset CURLOPT_CUSTOMREQUEST for each request
2025-09-05 15:45:28 +08:00
Karl Seguin
ac10d5b2a3
Don't assume that page events means the BrowserContext has a page
...
CDP currently assumes that if we get a page-related notification (like a
request interception, or page lifecycle event), then we must have a session
and page.
But, Target.detachFromTarget can remove the session from the BrowserContext
while still having the page run (I wonder if we should stop the page at this
point??). So, remove these assumptions and make sure we have a page/session
in the handling of page events.
2025-09-05 15:07:30 +08:00
Pierre Tachoire
9f040025e7
Merge pull request #1010 from lightpanda-io/update_transfer_uri_on_redirect
...
Update the transfer.uri on redirect
2025-09-05 08:35:13 +02:00
Karl Seguin
2522e7fe9c
Merge pull request #1011 from lightpanda-io/migrate_some_tests_5
...
migrate to htmlRunne (plus zig fmt)
2025-09-05 14:16:10 +08:00
Karl Seguin
dd22c55d23
migrate to htmlRunne (plus zig fmt)
2025-09-05 13:52:08 +08:00
Karl Seguin
a6efa9e9b2
Update the transfer.uri on redirect
...
Ensures that cookies set on the redirect page use the correct host and we don't
incorrectly reject cookies.
https://github.com/lightpanda-io/browser/issues/947
2025-09-05 08:55:36 +08:00
Karl Seguin
5087b8004a
Merge pull request #1009 from lightpanda-io/migrate_some_tests_4
...
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
migrate to htmlRunner
2025-09-04 18:32:17 +08:00
Karl Seguin
d4c40242d0
Merge pull request #1008 from lightpanda-io/network_idle_page_lifecycle
...
Emit networkIdle and networkAlmostIdle Page.lifecycleEvent
2025-09-04 17:48:02 +08:00
Karl Seguin
5af55f1d5d
migrate to htmlRunner
2025-09-04 17:46:42 +08:00
Karl Seguin
55ef0a5e9e
fix some spelling in comments
2025-09-04 16:44:00 +08:00
Karl Seguin
5dda86bf4a
Emit networkIdle and networkAlmostIdle Page.lifecycleEvent
...
Most CDP drivers have a mechanism to wait for idle network, or an almost idle
network (sometimes called networkIdle2). These are events the browser must emit.
The page will now emit `networkIdle` when we are reasonably sure there's no more
network activity (this requires some slight changes to request interception,
since, I believe, intercepted requests should be considered).
`networkAlmostIdle` is currently _always_ emitted prior to emitting
`networkIdle`. We should tweak this but I can't, at a glance, think of a great
heuristic for when this should be emitted.
2025-09-04 16:36:29 +08:00
Karl Seguin
d81377b10d
Merge pull request #1007 from lightpanda-io/timeout_limit
...
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
Limit serve timeout to 1 week
2025-09-04 16:02:39 +08:00
Karl Seguin
da128f5d49
remove unecessary @intCast
2025-09-04 15:52:08 +08:00
Karl Seguin
6e5fe8e4a2
Add timeout limit to --help text
2025-09-04 15:48:01 +08:00
Karl Seguin
b3d350d41e
Limit serve timeout to 1 week
2025-09-04 15:27:03 +08:00
Karl Seguin
7c6870f8eb
Merge pull request #1006 from lightpanda-io/migrate_some_tests_3
...
migrate to htmlRunner
2025-09-04 13:18:44 +08:00
Karl Seguin
327b4e4e37
migrate to htmlRunner
2025-09-04 13:11:15 +08:00
Karl Seguin
7fdc857326
Merge pull request #1004 from lightpanda-io/migrate_some_tests_2
...
Migrate some tests 2
2025-09-04 12:19:36 +08:00