Karl Seguin
ca41bb5fa2
fix import casing
2026-03-25 17:54:24 +08:00
Pierre Tachoire
9c37961042
Merge pull request #1989 from lightpanda-io/licensing.md
...
update LICENSING.md
2026-03-25 10:43:57 +01:00
Karl Seguin
0dd0495ab8
Removes CDPT (generic CDP)
...
CDPT used to be a generic so that we could inject Browser, Session, Page and
Client. At some point, it [thankfully] became a generic only to inject Client.
This commit removes the generic and bakes the *Server.Client instance in CDP.
It uses a socketpair for testing.
BrowserContext is still generic, but that's generic for a very different reason
and, while I'd like to remove that generic too, it belongs in a different PR.
2026-03-25 17:43:30 +08:00
Pierre Tachoire
c9fa76da0c
update LICENSING.md
2026-03-25 10:42:52 +01:00
Halil Durak
7718184e22
Merge pull request #1983 from lightpanda-io/nikneym/crypto-changes
...
Small `SubtleCrypto` refactor
2026-03-25 11:23:13 +03:00
Karl Seguin
b81b41cbf0
Merge pull request #1987 from lightpanda-io/conn-close
...
handle Connection: close without TLS close_notify
2026-03-25 16:11:42 +08:00
Pierre Tachoire
3a0cead03a
Merge pull request #1917 from lightpanda-io/semantic-versioning
...
build: automate version resolution in build.zig
2026-03-25 08:46:04 +01:00
Pierre Tachoire
92ce6a916a
http: don't check transfer._header_done_called on RecvError
2026-03-25 08:23:23 +01:00
Adrià Arrufat
130bf7ba11
Merge pull request #1951 from mvanhorn/osc/feat-mcp-detect-forms
...
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
mcp: add detectForms tool for structured form discovery
2026-03-25 14:23:09 +09:00
Adrià Arrufat
2e40354a3a
forms: add tests for input values and form defaults
2026-03-25 09:39:52 +09:00
Adrià Arrufat
3074bde2f3
forms: always include required and disabled fields
2026-03-25 09:35:17 +09:00
Adrià Arrufat
ed9f5aae2e
docs(forms): clarify arena allocator requirement for collectForms
2026-03-25 09:33:10 +09:00
Adrià Arrufat
8e315e551a
forms: extract form node registration logic
2026-03-25 09:30:06 +09:00
Pierre Tachoire
bad690da65
handle Connection: close without TLS close_notify
...
Some servers (e.g. ec.europa.eu) close the TCP connection without
sending a TLS close_notify alert after responding with Connection: close.
BoringSSL treats this as a fatal error, which libcurl surfaces as
CURLE_RECV_ERROR. If we already received valid HTTP headers and the
response included Connection: close, the connection closure is the
expected end-of-body signal per HTTP/1.1 — treat it as success.
You can reproduce with
```
lightpanda fetch https://ec.europa.eu/commission/presscorner/detail/en/ip_26_614
```
2026-03-24 21:20:59 +01:00
Karl Seguin
ae080f32eb
Allow Document to be the root of an intersection observer
...
We previously only supported an Element. null == viewport, but document means
the entire (scrollable) area, since we don't render anything, treating
document as null seems ok?
2026-03-24 21:48:38 +08:00
Pierre Tachoire
c5c1d1f2f8
tag next version to 1.0.0
2026-03-24 14:47:20 +01:00
Pierre Tachoire
eb18dc89f6
ci: use -Dversion_string for release (nightly) build
2026-03-24 14:46:48 +01:00
Navid EMAD
afb0c29243
Add submit_event case to Event.Type exhaustive switch
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-24 14:24:35 +01:00
Navid EMAD
267eee9693
Fix Form.requestSubmit(submitter) not setting SubmitEvent.submitter
...
Create SubmitEvent type and use it in submitForm() so that
e.submitter is correctly set when requestSubmit(submitter) is called.
Fixes #1982
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-24 14:19:50 +01:00
Halil Durak
39352a6bda
refactor SubtleCrypto
...
I've been thinking the implementation here is messy (ever since we added support for it) and thought it would be better to separate each algorithm to their respective files in order to maintain in a long run. `digest` is also refactored to prefer libcrypto instead of std.
2026-03-24 16:04:50 +03:00
Halil Durak
0838b510f8
src/crypto.zig -> src/sys/libcrypto.zig
...
Now that we have `sys/`, I think this makes more sense.
2026-03-24 16:04:49 +03:00
Karl Seguin
b19f30d865
Start allowing some cross-origin scripting.
...
There are a few things allowed in cross origin scripting, the most important
being window.postMessage and window.parent.
This commit changes window-returning functions (e.g. window.top, window.parent
iframe.contentWindow) from always returning a *Window, to conditionally
returning a *Window or a *CrossOriginWindow. The CrossOriginWindow only allows
a few methods (e.g. postMessage).
2026-03-24 19:27:55 +08:00
Karl Seguin
35be9f897f
Improve async tests
...
testing.async(...) is pretty lame. It works for simple cases, where the
microtask is very quickly resolved, but otherwise can't block the test from
exiting.
This adds an overload to testing.async and leverages the new Runner
https://github.com/lightpanda-io/browser/pull/1958 to "tick" until completion
(or timeout).
The overloaded version of testing.async() (called without a callback) will
increment a counter which is only decremented with the promise is resolved. The
test runner will now `tick` until the counter == 0.
2026-03-24 17:21:39 +08:00
Karl Seguin
d517488158
Merge pull request #1979 from lightpanda-io/dash-command-line-arguments
...
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
Support (and prefer) dash-separated command line arguments
2026-03-24 17:12:09 +08:00
Karl Seguin
fee8fe7830
Merge pull request #1978 from lightpanda-io/eventually_rename_onload
...
Rename testing.eventually to testing.onload, to make it more clear
2026-03-24 17:11:49 +08:00
Karl Seguin
428190aecc
Merge pull request #1972 from lightpanda-io/fix-issue-1970
...
Fix Expo Web crash by gracefully handling at-rules in CSSStyleSheet.insertRule
2026-03-24 13:52:09 +08:00
Karl Seguin
61dabdedec
Support (and prefer) dash-separated command line arguments
...
--log_level -> --log-level
Underscored arguments are still supported for backwards compatibility.
2026-03-24 12:55:08 +08:00
Karl Seguin
dfd9f216bd
Rename testing.eventually to testing.onload, to make it more clear
2026-03-24 12:21:46 +08:00
Adrià Arrufat
567cd97312
webapi.Element: centralize disabled state logic
2026-03-24 13:13:53 +09:00
Adrià Arrufat
0bfe00bbb7
css: disallow multiple rules in insertRule
2026-03-24 12:53:49 +09:00
Adrià Arrufat
260768463b
Merge branch 'main' into osc/feat-mcp-detect-forms
2026-03-24 09:25:47 +09:00
Adrià Arrufat
fd96cd6eb9
chore(css): log unimplemented at-rules in insertRule
2026-03-24 09:20:21 +09:00
Adrià Arrufat
25a7b5b778
Merge pull request #1977 from lightpanda-io/check_dirty_once
...
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
Only check StyleSheet dirty flag at the start (once) of operation
2026-03-24 09:12:10 +09:00
Karl Seguin
d4bcfa974f
Only check StyleSheet dirty flag at the start (once) of operation
2026-03-24 07:55:11 +08:00
Karl Seguin
c91eac17d0
Merge pull request #1975 from lightpanda-io/percent-encode-path
...
fix: percent-encode pathname in URL.setPathname per URL spec
2026-03-24 07:41:27 +08:00
Karl Seguin
5c79961bb7
Merge pull request #1969 from lightpanda-io/fix_append_child_crash
...
Handle `appendAllChildren` mutating the list of children
2026-03-24 07:29:16 +08:00
Karl Seguin
a0c200bc49
Merge pull request #1968 from lightpanda-io/document_write_deleted_parent
...
Handle nested document.write where parent gets deleted
2026-03-24 07:29:08 +08:00
Karl Seguin
9ea39e1c34
Merge pull request #1967 from lightpanda-io/css_anchor_normalization
...
Anchor(...) css property normalization
2026-03-24 07:28:59 +08:00
Karl Seguin
f7125d2bf3
Merge pull request #1964 from lightpanda-io/currentSrc
...
Add Image.currentSrc and Media.currentSrc
2026-03-24 07:28:51 +08:00
Karl Seguin
b163d9709b
Merge pull request #1959 from lightpanda-io/form_iterator
...
Expose form.iterator()
2026-03-24 07:28:31 +08:00
Karl Seguin
5453630955
Merge pull request #1958 from lightpanda-io/runner
...
Extract Session.wait into a Runner
2026-03-24 07:28:18 +08:00
Pierre Tachoire
8ada67637f
fix: precent-encode hash and search
2026-03-23 17:22:50 +01:00
Adrià Arrufat
5972630e95
Update CSS parser to track skipped at-rules and refine insertRule logic
2026-03-24 00:54:20 +09:00
Pierre Tachoire
58c18114a5
fix: percent-encode pathname in URL.setPathname per URL spec
...
URL.setPathname() inserted the value verbatim without percent-encoding,
so `url.pathname = "c d"` produced `http://a/c d` instead of
`http://a/c%20d `. This caused sites using URL polyfills (e.g. Angular's
polyfills bundle) to detect broken native URL support and fall back to a
polyfill that relies on HTMLInputElement.checkValidity(), which is not
implemented — crashing the entire app bootstrap.
2026-03-23 16:52:39 +01:00
Pierre Tachoire
a94b0bec93
Merge pull request #1946 from lightpanda-io/cdp-response-body
...
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
Encode non-utf8 Network.getResponseBody in base64
2026-03-23 16:46:12 +01:00
Adrià Arrufat
ff0fbb6b41
Fix Expo Web crash by gracefully handling at-rules in CSSStyleSheet.insertRule
2026-03-23 23:45:11 +09:00
Pierre Tachoire
797cae2ef8
encode captured response body during CDP call
2026-03-23 14:26:27 +01:00
Karl Seguin
433c03c709
Handle appendAllChildren mutating the list of children
...
`appendAllChildren` iterates through the children, but when a child is appended
it can mutate the DOM (only via a custom element connected callback AFAIK) which
can render the iterator invalid. Constantly get parent.firstChild() as the
target.
2026-03-23 21:16:11 +08:00
Karl Seguin
4d3e9feaf4
Handle nested document.write where parent gets deleted
...
Handles a real life case where a nested document.write mutates the DOM in a way
where there outer document.write loses its parent.
2026-03-23 21:00:02 +08:00
Karl Seguin
5700e214bf
Merge pull request #1966 from lightpanda-io/mcp_tools_test
...
Improve MCP tools test
2026-03-23 20:47:42 +08:00