Halil Durak
69884b9d8d
Location changes regarding to changes in URL
2025-10-21 16:44:29 +03:00
Muki Kiboigo
77434850f7
url traverse down to the root
2025-09-30 22:13:25 -07:00
Karl Seguin
1443f38e5f
Zig 0.15.1
...
Depends on https://github.com/lightpanda-io/zig-v8-fork/pull/89
2025-08-29 10:42:06 +08:00
Karl Seguin
8797549369
Fix network-path reference stitching
2025-08-18 23:05:11 +08:00
Karl Seguin
b0fe5d60ab
Initial work on integrating libcurl and making all http nonblocking
2025-08-11 21:36:56 +08:00
Karl Seguin
1af2513fc0
zig fmt
2025-07-17 20:52:15 +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
16a1677fde
Rework URL.stitch, handle ../ (for yahoo)
...
Also handle ./ anywhere in the path.
2025-07-17 17:54:00 +08:00
Karl Seguin
b50b96bd1d
Implement ImportMeta callback
...
The first time `import.meta` is called within a module, this callback is called
and we can populate it with whatever fields we want. For WebAPI, the important
field is `url`:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import.meta
Depends on: https://github.com/lightpanda-io/zig-v8-fork/pull/80
2025-07-01 15:59:24 +08:00
Karl Seguin
11fe79312d
Don't allow timeouts to be registered when shutting down
...
Currently, a timeout that sets a timeout can cause loop.run to block forever.
Also, cleanup URL stitch with leading './'. The resulting URL was valid, but
since we use the URL as the module cache key, it's important to resolve various
representations of the same URL in the same way.
2025-06-23 15:01:58 +08:00
Karl Seguin
b35107a966
URL stitch avoid double /
2025-06-04 21:41:49 +08:00
sjorsdonkers
ceb9453006
Simplify testing
2025-06-03 16:04:31 +02:00
sjorsdonkers
19d40845a4
input prop testing
2025-06-03 14:11:35 +02:00
Karl Seguin
97b17af056
fix leak in test
2025-06-03 10:49:52 +08:00
Karl Seguin
4c8e2a1258
Setting anchor href should consider document.url
2025-06-03 09:58:26 +08:00
Karl Seguin
2ef7ea6512
change stitch alloc default to .always
2025-06-02 19:24:08 +08:00
Karl Seguin
ac75f9bf57
Fix url constructor
...
url, base were being joined in the wrong order. Switch to using URL.stitch if
a base is given.
2025-06-02 16:43:01 +08:00
Karl Seguin
1869ef0c38
Merge pull request #734 from lightpanda-io/url_resolve_buffer_size
...
increase buffer size 1024->4096
2025-05-31 07:50:57 +08:00
Karl Seguin
e7007b4231
fix test
2025-05-31 07:31:05 +08:00
Karl Seguin
c30b424f36
increase buffer size 1024->4096
2025-05-31 07:19:30 +08:00
Karl Seguin
74b36d6d32
support form.submit()
...
Only supports application/x-www-form-urlencoded
2025-05-29 14:10:07 +08:00
sjorsdonkers
0929bd217d
load aboutblank doc
2025-05-21 09:43:15 +02:00
Muki Kiboigo
15be42340d
handling relative base URLs
2025-05-09 07:00:57 -07:00
sjorsdonkers
2a95b7a37c
Reduce url buffer
2025-05-09 10:44:07 +02:00
Karl Seguin
2d5ff8252c
Reorganize v8 contexts and scope
...
- Pages within the same session have proper isolation
- they have their own window
- they have their own SessionState
- they have their own v8.Context
- Move inspector to CDP browser context
- Browser now knows nothing about the inspector
- Use notification to emit a context-created message
- This is still a bit hacky, but again, it decouples browser from CDP
2025-04-29 10:22:08 +08:00
Karl Seguin
3134ff81f4
JS clicks and MouseInput clicks trigger page navigation
2025-04-18 16:24:04 +08:00
Karl Seguin
b8d7744563
replace zig-js-runtime
2025-04-15 15:18:04 +08:00
Pierre Tachoire
22307239ae
url: accept about:blank
2025-04-10 13:00:14 +02:00
Karl Seguin
be75b5b237
Add URL struct
...
Combine uri + rawuri into single struct.
Try to improve ownership around URIs and URI-like things.
- cookie & request can take *const std.Uri
(TODO: make them aware of the new URL struct?)
- Location (web api) should own its URL (web api URL)
- Window should own its Location
Most of these changes result in (a) a cleaner Page and (b) not having to carry
around 2 nullable objects (URI and rawuri).
2025-04-09 18:19:07 +08:00