Karl Seguin
4e8533b040
fix: Fix broken WPT build (-Dwpt_extensions)
...
Broken by: https://github.com/lightpanda-io/browser/pull/3128
2026-08-05 14:41:17 +08:00
Karl Seguin
8cdc8831c1
Merge pull request #3137 from lightpanda-io/client-width-content-width
...
render: Fallback to contentWidth when clientWidth isn't explicit
2026-08-05 08:45:02 +08:00
Karl Seguin
9767276ae3
Merge pull request #3136 from lightpanda-io/remove-test-log
...
chore: remove test error log from expected error
2026-08-05 08:44:47 +08:00
Karl Seguin
b691603823
Merge pull request #3135 from lightpanda-io/ensureTotalCapacityPrecise
...
mem: prefer ensureTotalCapacityPrecise to reduce memory usage
2026-08-05 08:44:32 +08:00
Karl Seguin
3c3939b21d
Merge pull request #3134 from lightpanda-io/https-truncation-redirect
...
http: redirect even on missing close_notify
2026-08-05 08:44:17 +08:00
Karl Seguin
c8ff4ff71d
Merge pull request #3133 from lightpanda-io/referrer-policy
...
http: start implementation correct referrer policy
2026-08-05 08:44:01 +08:00
Karl Seguin
850004d088
Merge pull request #3132 from lightpanda-io/dedupe-isolated-worlds
...
cdp: avoid creating duplicate isolated worlds
2026-08-05 08:43:37 +08:00
Karl Seguin
df913ec8a5
Merge pull request #3131 from lightpanda-io/gc-hint-heuristics
...
perf: Reduce memory pressure notification to v8
2026-08-05 08:43:17 +08:00
Karl Seguin
a7ea65e680
Merge pull request #3128 from lightpanda-io/element-bare-tag
...
mem: Switch Element's _type to a bare tag
2026-08-05 08:42:55 +08:00
Karl Seguin
9e05cf37d1
render: Fallback to contentWidth when clientWidth isn't explicit
...
amivoice.com appends to a child until that child reports a specific clientWidth.
To be correct, we'd need to know the render mode of the node (e.g. flexbox modes
overflows, etc...). Without that, we have limited options. If the width is
explicitly set, we use that (as before), but if it isn't, rather than defaulting
we use the much more expensive contentWidth. Also applies to height.
2026-08-04 18:50:22 +08:00
Karl Seguin
b90515616f
chore: remove test error log from expected error
2026-08-04 17:49:38 +08:00
Karl Seguin
c86d969ce0
mem: prefer ensureTotalCapacityPrecise to reduce memory usage
...
When we know the precise final length, prefer ensureTotalCapacityPrecise over
ensureTotalCapacity. The latter goes through `growCapacity` which will allocate
~1.5x padding.
2026-08-04 17:44:05 +08:00
Karl Seguin
d4642d8afc
http: redirect even on missing close_notify
...
We already had special handling for BoringSSL's RecvError on improperly closed
TLS connection. This moves the handling up, so that redirect handling is
covered by it too.
2026-08-04 17:37:07 +08:00
Karl Seguin
714e6095ed
lower gc limit just for the CI...
2026-08-04 17:13:03 +08:00
Karl Seguin
a71bf101d6
http: start implementation correct referrer policy
...
Referrer header is now set based on the computation of the frame url, the
target url, and the referrer policy which is parsed from the response header
and/or a <meta name=referrer>
2026-08-04 17:09:05 +08:00
Karl Seguin
7840005916
lower gc limit just for the CI...
2026-08-04 15:06:17 +08:00
Karl Seguin
a2c4aa0020
lower gc limit just for the CI...
2026-08-04 14:30:52 +08:00
Karl Seguin
aa22b7feea
cdp: avoid creating duplicate isolated worlds
...
If a driver asks to create an isolated world that already exists, don't create
it, return the existing one.
2026-08-04 14:27:15 +08:00
Karl Seguin
6e72c43fa2
remove dead context guard...trying to pass CI regression tests
2026-08-04 12:55:26 +08:00
Karl Seguin
83e47447b5
perf: Reduce memory pressure notification to v8
...
Only notify v8 of memory pressure when (a) there's memory to claim and (b)
there are dead context.
Also clean up code that relied on undefined behavior which might have left
local scopes un-freed and caused a v8 leak.
2026-08-04 12:18:31 +08:00
muki
e143533987
Merge pull request #2631 from lightpanda-io/sqlite-cache
...
Sqlite Cache Backend
2026-08-03 18:39:11 -07:00
Muki Kiboigo
7d6299895f
fix minor compilation issues
2026-08-03 18:26:58 -07:00
Muki Kiboigo
bf35489192
add content_type column in Cache
2026-08-03 18:26:58 -07:00
Muki Kiboigo
573c1f8a9a
use real seconds value for migrations applied_at
2026-08-03 18:26:58 -07:00
Muki Kiboigo
ea0a45c713
add format for SqliteCachePath
2026-08-03 18:26:58 -07:00
Muki Kiboigo
0b74224b15
use CachePutRequest for puts instead of CacheMetadata
2026-08-03 18:26:57 -07:00
Muki Kiboigo
65448bbde6
clear old non-Vary headers on renew
2026-08-03 18:26:13 -07:00
Muki Kiboigo
6c56144ef9
rework get to be strictly deferred
2026-08-03 18:26:12 -07:00
Muki Kiboigo
d16408d2d8
add transaction begin types
2026-08-03 18:17:44 -07:00
Muki Kiboigo
84405ad930
remove cache eviction path from HttpClient
2026-08-03 18:17:44 -07:00
Muki Kiboigo
a03471a1ce
add test for no validators behavior
2026-08-03 18:17:44 -07:00
Muki Kiboigo
8dc2488835
always defer conn.rollback after tx begin
2026-08-03 18:17:44 -07:00
Muki Kiboigo
65593179ea
early exit on SqliteCache.get on expired without validators
2026-08-03 18:17:44 -07:00
Muki Kiboigo
3bfec6d7ff
skip body dupe on expired without validators on Cache.get
2026-08-03 18:17:43 -07:00
Muki Kiboigo
04e93cd592
check vary before we dupe in SqliteCache.get
2026-08-03 18:17:43 -07:00
Muki Kiboigo
94c029ff32
get rid of file variant in CachedData
2026-08-03 18:17:43 -07:00
Muki Kiboigo
a96543052c
manually delete and reinsert
2026-08-03 18:17:43 -07:00
Muki Kiboigo
671b110aa2
loadBody can return null
2026-08-03 18:17:43 -07:00
Muki Kiboigo
b2727a1ab4
remove Storage and FsCache
2026-08-03 18:17:43 -07:00
Muki Kiboigo
4d59b61a33
remove primary key on url name
2026-08-03 18:17:43 -07:00
Muki Kiboigo
047280e0d6
use strict tables
2026-08-03 18:17:43 -07:00
Pierre Tachoire
1308639a9f
cap delta-seconds values per RFC 9111
...
Huge max-age/Age header values previously either panicked in the
i64 casts when storing metadata, or were silently truncated to their
first 8 digits by the fixed-size lowercase buffer in
CacheControl.parse. Cap them at 2^31 as RFC 9111 §1.2.2 prescribes
and compare directives case-insensitively without truncation.
2026-08-03 18:17:42 -07:00
Muki Kiboigo
0f2957cda2
add SqliteCache as default local impl
2026-08-03 18:17:40 -07:00
Karl Seguin
d5807bf8a0
mem: Switch Element's _type to a bare tag
...
Follows https://github.com/lightpanda-io/browser/pull/3104 . Also applies to Html
and Svg. A div chain shrinks by 24 bytes.
2026-08-04 08:05:24 +08:00
Karl Seguin
5f88b33ed6
Merge pull request #3118 from lightpanda-io/refactor-http-client-headers
...
refactor: rework how httpclient headers work
2026-08-04 06:42:10 +08:00
Karl Seguin
f5c40da81c
Merge pull request #3111 from lightpanda-io/cdp-json-protocol
...
cdp: add /json/protocol endpoint
2026-08-04 06:41:55 +08:00
Karl Seguin
aecb3ac459
Merge pull request #3105 from lightpanda-io/string-align
...
mem: rework string.String to be align(8)
2026-08-04 06:41:43 +08:00
Karl Seguin
df11a6e4af
Merge pull request #3104 from lightpanda-io/node-bare-tag
...
mem: Switch Node's _type to a bare tag
2026-08-04 06:41:26 +08:00
Karl Seguin
ccc0a988a3
Merge pull request #3103 from lightpanda-io/scheduler
...
Rework scheduler
2026-08-04 06:41:11 +08:00
Karl Seguin
940796d4da
Merge pull request #3101 from lightpanda-io/script-cacheable-log
...
chore: remove cacheable field from ScriptManager log
2026-08-04 06:40:53 +08:00