Karl Seguin
1af2513fc0
zig fmt
2025-07-17 20:52:15 +08:00
Karl Seguin
9c0d26bc84
add note about incomplete removal
2025-07-17 20:51:05 +08:00
Karl Seguin
4d9053a83b
Update src/url.zig
...
Co-authored-by: Sjors <72333389+sjorsdonkers@users.noreply.github.com >
2025-07-17 20:45:42 +08:00
Karl Seguin
3f7e98c277
Update src/url.zig
...
Co-authored-by: Sjors <72333389+sjorsdonkers@users.noreply.github.com >
2025-07-17 20:45:35 +08:00
Karl Seguin
aebc877e7b
Merge pull request #900 from lightpanda-io/getDocument_depth
...
support `depth` parameter for DOM.getDocument
2025-07-17 20:44:58 +08:00
Karl Seguin
eef5f3fec2
support null params to CDP DOM.getDocument
2025-07-17 19:05:17 +08:00
Karl Seguin
16a1677fde
Rework URL.stitch, handle ../ (for yahoo)
...
Also handle ./ anywhere in the path.
2025-07-17 17:54:00 +08:00
Karl Seguin
f199816fcd
support depth parameter for DOM.getDocument
2025-07-17 14:17:33 +08:00
Karl Seguin
5e74e17b41
Merge pull request #888 from lightpanda-io/cdp_dom_requestChildNodes
...
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
Add support for CDP's DOM.requestChildNodes
2025-07-17 10:48:24 +08:00
Karl Seguin
98b041e84a
requestChildNode cannot have a depth of 0
2025-07-17 10:36:20 +08:00
Karl Seguin
bba9c8f652
Add element.remove() (needed by reddit)
2025-07-17 10:00:38 +08:00
Karl Seguin
1a05fe6ae1
Merge pull request #887 from lightpanda-io/go_rod
...
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
Noop CDP methods that go-rod requires
2025-07-16 20:01:03 +08:00
sjorsdonkers
16fcbf66ee
http_proxy_before ?? comment
2025-07-16 11:20:00 +02:00
Karl Seguin
b7fd4e90e2
Merge pull request #894 from lightpanda-io/HTMLStyleElement_get_sheet
...
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
add HTMLStyleElement.get_sheet
2025-07-16 10:34:37 +08:00
Karl Seguin
b6341c10cc
Merge pull request #892 from lightpanda-io/set_timeout_params
...
Support params for setTimeout and setInterval
2025-07-16 08:17:11 +08:00
Karl Seguin
08487b0fcc
Merge pull request #891 from lightpanda-io/reattach_shadowroot
...
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
Add childElementCount and children to DocumentFragment
2025-07-15 23:36:26 +08:00
muki
b084dde22a
Merge pull request #872 from lightpanda-io/dynamic-import
2025-07-15 08:31:52 -07:00
Karl Seguin
5229a7c997
Merge pull request #897 from lightpanda-io/animate
...
Add Element.animate and Animation
2025-07-15 23:09:08 +08:00
Karl Seguin
e56c56e2fe
Merge pull request #895 from lightpanda-io/performance_clear
...
dummy performance clearMarks and clearMeasures
2025-07-15 21:40:31 +08:00
Karl Seguin
7374f956cf
Merge pull request #896 from lightpanda-io/dont_send_after_disconnect
...
Don't queue data to send after we've initiated a disconnect of the cl…
2025-07-15 21:29:01 +08:00
Muki Kiboigo
287df42994
log module specifier on dynamic import stages
2025-07-15 06:22:52 -07:00
Muki Kiboigo
06e514cc2e
use resource_str for stitching url
2025-07-15 06:22:52 -07:00
Muki Kiboigo
dffd8b5fec
use module() for dynamic imports
2025-07-15 06:22:52 -07:00
Muki Kiboigo
2a87337875
dynamicImportCallback in JsContext
2025-07-15 06:22:50 -07:00
Karl Seguin
a74f79118f
Merge pull request #893 from lightpanda-io/dump_noscript
...
Add a --noscript option to "improve" --dump
2025-07-15 21:22:33 +08:00
Muki Kiboigo
a13ed0bec3
add dynamic import callback to isolate
2025-07-15 06:22:13 -07:00
Karl Seguin
f8ca45f0f2
Add Element.animate and Animation
...
These are dummy implementations, but they do expose the ready and finished
promise, and do resolve the finished promise, so it should unblock basic cases.
2025-07-15 18:58:58 +08:00
Karl Seguin
4bf92a34f6
Don't queue data to send after we've initiated a disconnect of the client
2025-07-15 17:58:57 +08:00
Karl Seguin
4f1c84004a
dummy performance clearMarks and clearMeasures
2025-07-15 12:11:28 +08:00
Karl Seguin
1bd430598d
add HTMLStyleElement.get_sheet
2025-07-15 10:59:59 +08:00
Karl Seguin
3bc654bf97
Merge pull request #890 from lightpanda-io/xhr_cant_block_sync_requests
...
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
Always make sure we have 1 free http state available for synchronous …
2025-07-15 10:08:54 +08:00
Karl Seguin
3906acb83d
fix test
2025-07-14 18:42:25 +08:00
Karl Seguin
cfd62ac137
Add a --noscript option to "improve" --dump
...
Currently, fetch --dump includes <script> tag (either inline or with src). I
don't know what use-case this is the desired behavior. Excluding them, via the
new --noscript option has benefit that if you --dump --noscript and open the
resulting page in the browser, you don't re-execute JavaScript, which is
likely to break the page.
For example, opening a --dump of github makes it look like the page is broken
because it re-executes JavaScript that isn't meant to be re-executed.
Similarly, opening a --dump in a browser might execute JavaScript that
lightpanda browser failed to execute, making it looks like it worked better
than it did.
2025-07-14 18:24:36 +08:00
Karl Seguin
cd540dfae9
Support params for setTimeout and setInterval
2025-07-14 17:42:53 +08:00
Karl Seguin
74ad9ec8bf
Add childElementCount and children to DocumentFragment
...
Also, when shadowRoot is re-attached to an element, clear all existing children
(like we're supposed to)
2025-07-14 17:01:11 +08:00
Karl Seguin
4f8a3fe5b9
Always make sure we have 1 free http state available for synchronous requests
...
If it wasn't for the fact that the HTTP client is likely going to see a major
refactor, it would definitely be time to create a specific state instance for
synchronous requests.
2025-07-14 16:41:26 +08:00
Karl Seguin
09ca0e6ef0
Add support for CDP's DOM.requestChildNodes
...
https://github.com/lightpanda-io/browser/issues/866
2025-07-14 15:13:01 +08:00
Karl Seguin
fae2b5acfa
Noop CDP methods that go-rod requires
...
go-rod appears to stop processing when it receives an error, such as
UnknownMethod. Added placeholder handlers for Network.setUserAgentOverride and
Page.stopLoading.
Setting a custom user agent is something still being discussed, so no-oping it
seems reasonable. And, due to the currently synchronous nature of the initial
page load, no-oping stopLoading also seems reasonable.
https://github.com/lightpanda-io/browser/issues/867
2025-07-14 11:21:02 +08:00
Karl Seguin
d35a3eab6c
Merge pull request #880 from lightpanda-io/webcomponents
...
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
Add basic ShadowRoot implementation, polyfill webcomponents
2025-07-14 11:10:40 +08:00
Karl Seguin
7f7f47497a
Merge pull request #886 from lightpanda-io/scriptcompiler-compile
...
use ScriptCompiler to compile script
2025-07-14 11:07:29 +08:00
Karl Seguin
eb14ac3741
update build.zig.zon v8 version
2025-07-14 11:00:01 +08:00
Karl Seguin
22334faba3
update zig-v8-fork lib version
2025-07-14 10:51:27 +08:00
Karl Seguin
d08fd297e8
Merge pull request #881 from lightpanda-io/window_queueMicrotask
...
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
add window.queueMicrotask
2025-07-13 09:03:57 +08:00
Pierre Tachoire
0dd664bfbf
use ScriptCompiler to compile script
2025-07-12 12:09:16 -07:00
Karl Seguin
1602932d72
Add a "pre" polyfill
...
This is always run, but only the full webcomponents polyfill, it's very
small and isn't intrusive. This introduces a layer of indirection so that,
if the full polyfill is loaded, its monkeypatched constructor will be called
2025-07-12 19:49:19 +08:00
Karl Seguin
98c8b7d2b0
Merge pull request #875 from lightpanda-io/async_forward_proxy_to_tls
...
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
Fix async https requests over a http forward proxy
2025-07-11 17:53:53 +08:00
Karl Seguin
b9ae24c42d
add window.queueMicrotask
2025-07-11 17:46:39 +08:00
Karl Seguin
b387fd2bd4
Update src/http/client.zig
...
Co-authored-by: Sjors <72333389+sjorsdonkers@users.noreply.github.com >
2025-07-11 17:38:31 +08:00
Karl Seguin
818f4540fd
Add basic ShadowRoot implementation, polyfill webcomponents
2025-07-11 17:32:01 +08:00
sjorsdonkers
49a97dbb66
fix callback crash with Node.Union
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
2025-07-11 10:05:44 +02:00