Halil Durak
fa00a5da52
fix link element test
...
Changes are made regarding to `host`, `port` and `hostname`. Definitions are provided by MDN.
2025-10-20 12:43:36 +03:00
Halil Durak
344420f708
bring back hostname getter/setter functions
...
This was a regression while testing things.
2025-10-20 12:41:47 +03:00
Halil Durak
b87a59fa49
href should have / if path not provided
2025-10-20 12:41:08 +03:00
Halil Durak
535a21c9f2
change the way ada is linked to the build system
...
Link the ada library to ada module rather than building alongside main module.
2025-10-18 16:19:59 +03:00
Halil Durak
51a328d357
don't link libcpp twice
...
This was causing an issue on ld linker but not on MachO.
2025-10-18 13:20:24 +03:00
Halil Durak
146b56c8c0
refactor HTMLAnchorElement
...
Prefer new URL implementation with separate store for object data.
2025-10-17 19:39:10 +03:00
Halil Durak
8e7d8225ba
prefer getHref instead of raw
...
Now that we allocate for URLs, we know that lifetime of `href` is same as URL itself; so we don't need to keep a separate `raw` string.
Only difference is `href` is normalized whereas `raw` is not. Most things `raw` being used for require normalized URLs though, so such a change is fine.
2025-10-17 16:02:32 +03:00
Halil Durak
a46218cbae
change in page url's init/deinit logic
...
this must be done in runtime now sadly, good thing is it doesn't add much and `getHref` can be spread everywhere without pointer life concerns
2025-10-17 15:54:29 +03:00
Halil Durak
e9755bd38b
remove early free
...
yet another thing we should figure out; IMO cookie can have ownership to its url, would make it a lot simpler to use & deinitialize
2025-10-17 15:50:42 +03:00
Halil Durak
6820a00cd0
revert element test
2025-10-17 15:49:17 +03:00
Halil Durak
4c4feef9fc
add nullable ada url functions
...
not fully sure how we should implement those; I believe we should move forward with nullable functions and put null-check logic outside of the wrappers
2025-10-17 15:48:28 +03:00
Halil Durak
c930d942fe
invalidUrl test is no longer necessary
2025-10-17 15:46:33 +03:00
Halil Durak
c371538d27
rebase onto main
2025-10-14 16:43:18 +03:00
Halil Durak
7629bf274a
various changes in ada-url module
2025-10-14 15:47:43 +03:00
Halil Durak
9e7e9b67ff
add getHostname
2025-10-14 15:47:43 +03:00
Halil Durak
9b3be14650
prefer hostname instead of host in forRequest
2025-10-14 15:47:43 +03:00
Halil Durak
6af8add7ff
fix cookie path parsing
2025-10-14 15:47:43 +03:00
Halil Durak
cf9ecbd9fd
prefer URL instead of std.Uri everywhere
2025-10-14 15:47:42 +03:00
Halil Durak
cecdd47bbc
bind more ada functions
...
also includes a fix for releasing memory if parsing failed
2025-10-14 15:42:14 +03:00
Halil Durak
900c8d2473
change after rebase
2025-10-14 15:42:14 +03:00
Halil Durak
c1160543ad
basic url parsing working
...
* also reintroduces old `URLSearchParams` implementation since ada prefers its own iterator where we'd like to use our own.
2025-10-14 15:42:14 +03:00
Halil Durak
1c7971b096
bind more ada-url functions
2025-10-14 15:39:41 +03:00
nikneym
45cd494298
initial URL refactor
2025-10-14 15:39:41 +03:00
nikneym
8f99e36cde
add ada-url wrappers
...
* also integrate it as module in build.zig rather than direct linking
2025-10-14 14:23:48 +03:00
nikneym
25a1d588a9
integrate ada-url dependency to build system
2025-10-14 14:23:48 +03:00
Karl Seguin
d87d782fd5
Merge pull request #1137 from lightpanda-io/profiler
...
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
Expose v8 CpuProfiler + add fast properties for some window properties
2025-10-14 05:45:31 +08:00
Karl Seguin
99f8fe1592
Merge pull request #1139 from lightpanda-io/inspector-deinit
...
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
cdp: drain microtasks before inspector deinit
2025-10-11 08:14:37 +08:00
Pierre Tachoire
02c092a122
Merge pull request #1140 from lightpanda-io/invalid-errdefer
...
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
remove invalid errdefer
2025-10-10 18:54:16 +02:00
Pierre Tachoire
70ca74747f
remove invalid errdefer
2025-10-10 18:09:57 +02:00
Pierre Tachoire
594d754022
cdp: drain microtasks before inspector deinit
2025-10-10 17:43:08 +02:00
Karl Seguin
c381e4153d
Expose v8 CpuProfiler + add fast properties for some window properties
...
First, this exposes the v8 Profiler. Right now it's just a commented-out block
in `fetch` and meant for internal debugging.
Depends on: https://github.com/lightpanda-io/zig-v8-fork/pull/105
Use postAttach on Window to attach "static" properties. This comes from
profiling (lightpanda.io) and seeing window.get_self called tens of thousands
of times.
2025-10-10 19:51:29 +08:00
Halil Durak
e761c7e8f4
Merge pull request #1115 from lightpanda-io/nikneym/url-changes
...
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
Small URL & Location changes
2025-10-10 10:54:47 +03:00
Halil Durak
b8d4e3ac50
change after rebase
2025-10-10 10:43:04 +03:00
Halil Durak
4c2b95d00b
always prefer navigateFromWebAPI when navigating from a web API
2025-10-10 10:40:11 +03:00
nikneym
cea4f052ba
location: add href setter
...
* `page.navigateFromWebAPI` seem to be not working while testing; `page.navigate` is preferred instead.
2025-10-10 10:40:11 +03:00
nikneym
9b4ea7a040
add an invalid url test
...
* this test should not pass; it's related to implementation of `std.Uri` though.
2025-10-10 10:40:10 +03:00
nikneym
26c2b258b4
get_protocol: don't allocate for protocol string
2025-10-10 10:40:04 +03:00
Halil Durak
27c9e18535
Merge pull request #1134 from lightpanda-io/nikneym/default-location
...
Location: prefer `about:blank` when not navigated yet
2025-10-10 10:33:36 +03:00
Pierre Tachoire
b53c2bfa0c
Merge pull request #1135 from lightpanda-io/importmap
...
Importmap support
2025-10-10 09:33:23 +02:00
Pierre Tachoire
80605633c4
update wpt
2025-10-10 08:46:06 +02:00
Pierre Tachoire
acf06fdd8f
Resolve importmap against page's url
...
Co-authored-by: Karl Seguin <karlseguin@users.noreply.github.com >
2025-10-10 08:34:56 +02:00
Pierre Tachoire
58cc5b4684
typo fix
2025-10-10 08:02:45 +02:00
Karl Seguin
c502bd901e
Merge pull request #1136 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
Update libdom
2025-10-10 13:15:11 +08:00
Karl Seguin
55027747fd
Update libdom
...
Apply case-preservation on all SVG elements.
2025-10-10 12:46:27 +08:00
Karl Seguin
f6d77afe2e
Merge pull request #1130 from lightpanda-io/intersection_observer
...
Rework IntersectionObserver
2025-10-10 11:10:08 +08:00
Pierre Tachoire
cd9466dafa
free importmap on reset and don't retain capacity
2025-10-09 16:30:29 +02:00
Pierre Tachoire
4bf79e4bc9
add importmap support
2025-10-09 16:09:25 +02:00
Pierre Tachoire
7afecf0f85
move mod specifier resolution js/context => script manager
2025-10-09 16:09:24 +02:00
Halil Durak
0b38b7d473
location: prefer about:blank when not navigated yet
2025-10-09 16:55:05 +03:00
Karl Seguin
1b462da4aa
Merge pull request #1133 from lightpanda-io/nikneym/cookie-validation
...
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 a fast path for validating cookie strings
2025-10-09 20:25:52 +08:00