Pierre Tachoire
d88139c5b5
test using lpd-bench-hetzner
2026-03-30 11:19:22 +02:00
Karl Seguin
078e13d8a4
Remove DOMContentLoaded and Loaded events from page_navigated
...
These were moved to their own distinct events, and should have been removed from
here.
2026-03-30 11:39:38 +08:00
Karl Seguin
cabb029bed
Improve/Fix CDP navigation event order
...
These changes all better align with chrome's event ordering/timing.
There are two big changes. The first is that our internal page_navigated event,
which is kind of our heavy hitter, is sent once the header is received as
opposed to (much later) on document load. The main goal of this internal event
is to trigger the "Page.frameNavigated" CDP event which is meant to happen
once the URL is committed, which _is_ on header response.
To accommodate this earlier trigger, new explicit events for DOMContentLoaded
and load have be added.
This drastically changes the flow of events as things go from:
Start Page Navigation
Response Received
Start Frame Navigation
Response Received
End Frame Navigation
End Page Navigation
context clear + reset
DOMContentLoaded
Loaded
TO:
Start Page Navigation
Response Received
End Page Navigation
context clear + reset
Start Frame Navigation
Response Received
End Frame Navigation
DOMContentLoaded
Loaded
So not only does it remove the nesting, but it ensures that the context are
cleared and reset once the main page's navigation is locked in, and before any
frame is created.
2026-03-30 11:02:53 +08:00
Pierre Tachoire
03ed45637a
Merge pull request #1889 from lightpanda-io/wp/mrdimidium/refactor-redirects
...
e2e-test / zig build release (push) Has been cancelled
zig-test / zig fmt (push) Has been cancelled
zig-test / zig test using v8 in debug mode (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / wba-demo-scripts (push) Has been cancelled
e2e-test / wba-test (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
e2e-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 / zig build release (push) Has been cancelled
wpt / build wpt runner (push) Has been cancelled
wpt / web platform tests json output (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
e2e-integration-test / zig build release (push) Has been cancelled
e2e-integration-test / demo-integration-scripts (push) Has been cancelled
Rework header/data callbacks in HttpClient
2026-03-27 14:22:58 +01:00
Nikolay Govorov
9068fe718e
Fix SameSite cookies
2026-03-27 11:16:46 +00:00
Nikolay Govorov
5369d25213
fix recv e2e test
2026-03-27 09:49:16 +00:00
Nikolay Govorov
649d8d1024
Remove duplication in cookies instalation
2026-03-27 09:49:13 +00:00
Nikolay Govorov
15d60d845a
Fixup error handling in HttpClient process messages
2026-03-27 09:49:11 +00:00
Nikolay Govorov
c4b837b598
Revert log reimport
2026-03-27 09:49:09 +00:00
Nikolay Govorov
54391238c9
Move cdp callbacks from dataCallback to processMessages
2026-03-27 09:49:07 +00:00
Nikolay Govorov
d33edc5697
Fixup cookies management
2026-03-27 09:49:05 +00:00
Nikolay Govorov
16ca8d4b14
Fix cleanup connections in HttpClient
2026-03-27 09:49:03 +00:00
Nikolay Govorov
707ffb4893
Move redirects handling from curl callbacks
2026-03-27 09:48:59 +00:00
Pierre Tachoire
4782b37216
Merge pull request #2016 from lightpanda-io/readme-mention-cors
...
mention CORS is missing in the README's status
2026-03-27 08:34:09 +01:00
Pierre Tachoire
ce197256dd
Merge pull request #2010 from lightpanda-io/build-pre-nightly
...
build: simplify nightly versioning
2026-03-27 08:33:45 +01:00
Pierre Tachoire
e6d644998a
mention CORS is missing in the README's status
2026-03-27 08:26:56 +01:00
Karl Seguin
67bd555e75
Merge pull request #2013 from lightpanda-io/cleanup_dead_code_removal
...
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / wba-demo-scripts (push) Has been cancelled
e2e-test / wba-test (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
e2e-test / browser fetch (push) Has been cancelled
zig-test / zig fmt (push) Has been cancelled
zig-test / zig test using v8 in debug mode (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
Remove unused imports
2026-03-27 13:52:49 +08:00
Adrià Arrufat
a10e533701
Remove more unused imports
2026-03-27 14:24:17 +09:00
Karl Seguin
0065677273
Merge pull request #2011 from lightpanda-io/mcp-fixes
...
MCP fixes
2026-03-27 13:02:59 +08:00
Karl Seguin
226d9bfc6f
zig fmt
2026-03-27 12:47:24 +08:00
Karl Seguin
2e65ae632e
Merge pull request #2009 from lightpanda-io/fix/issue-1960
...
mcp: improve argument parsing error handling
2026-03-27 12:46:34 +08:00
Karl Seguin
ea422075c7
Remove unused imports
...
And some smaller cleanups.
2026-03-27 12:45:26 +08:00
Adrià Arrufat
1d54e6944b
mcp: send error response when message is too long
2026-03-27 11:36:18 +09:00
Adrià Arrufat
de32e5cf34
mcp: handle missing request IDs safely
2026-03-27 11:34:06 +09:00
Adrià Arrufat
c8d8ca5e94
mcp: improve error handling in resources and tools
...
- Handle failures during HTML, Markdown, and link serialization.
- Return MCP internal errors when result serialization fails.
- Refactor resource reading logic for better clarity and consistency.
2026-03-27 11:28:47 +09:00
Adrià Arrufat
7f2139f612
build: simplify nightly versioning
2026-03-27 10:47:43 +09:00
Adrià Arrufat
da0828620f
mcp: improve argument parsing error handling
...
Closes #1960
2026-03-27 10:04:45 +09:00
Adrià Arrufat
cdd33621e3
Merge pull request #2005 from lightpanda-io/mcp-lp-node-registry
...
MCP/CDP: unify node registration
2026-03-27 09:36:08 +09:00
Karl Seguin
8001709506
Merge pull request #2002 from lightpanda-io/nikneym/form-data-event
...
Support `FormDataEvent`
2026-03-27 08:16:32 +08:00
Karl Seguin
a0ae6b4c92
Merge pull request #2008 from buley/feature/fix-scanner-warnings
...
chore: fix dead code and error swallowing warnings
2026-03-27 08:10:31 +08:00
Karl Seguin
fdf7f5267a
Merge pull request #2001 from lightpanda-io/refactor/mcp-tools-dedup
...
mcp: extract parseOptionalAndGetPage helper
2026-03-27 07:58:18 +08:00
Taylor
88e0b39d6b
chore: fix dead code and error swallowing warnings
...
Fixes issues reported by polyglot-scanner:
- Removed explicit `return` keywords and trailing semicolons to resolve DEAD_CODE/DEAD_BRANCH warnings.
- Replaced `epoch::advance().unwrap()` and `stats::resident::read().unwrap()` with safer alternatives (`drop` and `unwrap_or(0)`) to resolve ERROR_SWALLOW warnings.
- Replaced `let _ = Box::from_raw(...)` with `drop(Box::from_raw(...))` to correctly drop the box while fixing the ERROR_SWALLOW warning.
2026-03-26 09:58:49 -07:00
Pierre Tachoire
f95396a487
Merge pull request #1998 from lightpanda-io/url_origin_fix
...
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / wba-demo-scripts (push) Has been cancelled
e2e-test / wba-test (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
e2e-test / browser fetch (push) Has been cancelled
zig-test / zig fmt (push) Has been cancelled
zig-test / zig test using v8 in debug mode (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 / zig build release (push) Has been cancelled
wpt / build wpt runner (push) Has been cancelled
wpt / web platform tests json output (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
e2e-integration-test / zig build release (push) Has been cancelled
e2e-integration-test / demo-integration-scripts (push) Has been cancelled
Improve authority parsing
2026-03-26 17:32:40 +01:00
Pierre Tachoire
d02d05b246
Merge pull request #2004 from lightpanda-io/nikneym/resize-unobserver
...
`ResizeObserver`: make `unobserve` available in JS context
2026-03-26 16:48:42 +01:00
Pierre Tachoire
7b2d817d0e
Merge pull request #2003 from lightpanda-io/nikneym/canvas-access-canvas
...
`CanvasRenderingContext2D`: make canvas able to access canvas element
2026-03-26 16:48:11 +01:00
Adrià Arrufat
7e778a17d6
MCP/CDP: unify node registration
...
This fixes a bug in MCP where interactive elements were not assigned
a backendNodeId, preventing agents from clicking or filling them. Also
extracts link collection to a shared browser module.
2026-03-26 23:51:43 +09:00
Pierre Tachoire
a0dd14aaad
Merge pull request #1999 from lightpanda-io/wait_until_default
...
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / wba-demo-scripts (push) Has been cancelled
e2e-test / wba-test (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
e2e-test / browser fetch (push) Has been cancelled
zig-test / zig fmt (push) Has been cancelled
zig-test / zig test using v8 in debug mode (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
Fix --wait-until default value.
2026-03-26 15:03:59 +01:00
Halil Durak
d447d1e3c7
ResizeObserver: make unobserve available in JS context
2026-03-26 16:37:17 +03:00
Halil Durak
8684d35394
add tests
2026-03-26 16:35:23 +03:00
Halil Durak
e243f96988
CanvasRenderingContext2D: make canvas able to access canvas element
2026-03-26 16:35:13 +03:00
Pierre Tachoire
7ea8f3f766
Merge pull request #2000 from lightpanda-io/add-pre-version
...
add a -Dpre_version build flag for custom pre version
2026-03-26 12:06:38 +01:00
Halil Durak
5e6082b5e9
FormDataEvent: add tests
2026-03-26 14:04:03 +03:00
Halil Durak
1befd9a5e8
make comment on SubmitEvent doc-comment
2026-03-26 14:03:51 +03:00
Halil Durak
e103ce0f39
FormDataEvent: initial support
2026-03-26 14:03:33 +03:00
Adrià Arrufat
14fa2da2ad
mcp: remove duplicate code in testLoadPage
2026-03-26 19:57:14 +09:00
Pierre Tachoire
28cc60adb0
add a -Dpre_version build flag for custom pre version
2026-03-26 11:52:16 +01:00
Adrià Arrufat
96d24b5dc6
mcp: extract parseOptionalAndGetPage helper
...
Deduplicate the repeated "parse optional URL, maybe navigate, get page"
pattern across 6 MCP tool handlers (markdown, links, semantic_tree,
interactiveElements, structuredData, detectForms).
2026-03-26 19:44:44 +09:00
Karl Seguin
c14a9ad986
Merge pull request #1992 from navidemad/cdp-page-reload
...
CDP: implement Page.reload
2026-03-26 18:14:49 +08:00
Karl Seguin
679f2104f4
Fix --wait-until default value.
...
This was `load`, but it should have been (and was documented as `done`). This
is my fault. Sorry.
Should help with: https://github.com/lightpanda-io/browser/issues/1947#issuecomment-4120597764
2026-03-26 18:06:14 +08:00
Navid EMAD
c6b0c75106
Address review: use arena.dupeZ for URL copy, add try to testing.context()
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-26 10:09:48 +01:00