Commit Graph
2729 Commits
Author SHA1 Message Date
ldm0 43feec65be fix(storage): exclude Web Storage from quota-managed usage
Align StorageManager.estimate and CDP Storage.getUsageAndQuota with Chromium's
quota clients. Report IndexedDB, Cache Storage, and OPFS by backend, including
named and implicit-default bucket data, without touching local/sessionStorage.
Keep Web Storage's independent per-area quota unchanged.

Cover Web Storage exclusion, an unopened or closed SQLite localStorage backend,
default and named OPFS data, bucket attribution, and command-session isolation.
2026-11-01 04:03:38 +08:00
ldm0 1e09077598 fix(import): report canonical cookie acceptance and rejection
Count only writes accepted by the canonical store, aggregate rejection reasons,
and separately report the destination's final unexpired cookie count. This
makes rejected records, replacements, and quota eviction visible to CLI users.

Cover partial and complete rejection, duplicate identities, existing cookies,
and per-domain quota eviction against persisted SQLite contents.
2026-11-01 04:03:38 +08:00
ldm0 d0a8d7ae19 fix(storage): retry recoverable SQLite writeback failures
Preserve SQLite error codes and retry atomic batches after transient resource,
locking, and I/O failures. Back off from one second to a capped sixty-second
interval without letting new mutations bypass the delay. Successful commits
restore localStorage admission; permanent errors still require explicit retry.

Verify bounded scheduling with virtual time and real SQLITE_FULL recovery
without a second flush, including restart persistence and new writes.
2026-11-01 04:03:38 +08:00
ldm0 6584ff274f refactor(storage): keep SQLite databases directly in partition directory 2026-11-01 04:03:38 +08:00
ldm0 5e6482996e feat(storage): open Cookie and localStorage databases on first use 2026-11-01 04:03:38 +08:00
ldm0 b5cf04a307 refactor(storage): switch SQLite namespaces without JSON migration 2026-11-01 04:03:38 +08:00
ldm0 4649cb1256 feat(storage): use partition SQLite cookies and localStorage by default 2026-11-01 04:03:38 +08:00
ldm0 6708ecf8ac feat(profile): stage and recover atomic SQLite cookie and localStorage migration 2026-11-01 04:03:38 +08:00
ldm0 2defc40820 feat(cookies): persist canonical cookie deltas in SQLite 2026-11-01 04:03:38 +08:00
ldm0 03e09d240c feat(storage): add asynchronous SQLite Web Storage areas and flush barriers 2026-11-01 04:03:38 +08:00
ldm0 5e4ce39c51 refactor(storage): extract renderer-independent Web Storage state 2026-11-01 04:03:38 +08:00
ldm0 ef1f983b4b refactor(storage): share the partition SQLite runtime with IndexedDB 2026-11-01 04:03:38 +08:00
ldm0 b092492b97 test(navigation): await traversal and background target load
Wait for the destination traversal state and the background session load notification before inspecting document contents. A best-effort stability result or navigation acknowledgement does not establish either completion boundary.
2026-11-01 03:55:30 +08:00
ldm0 bd1b20b974 test(cli): assert readiness budgets without wall-clock cutoffs
Check the remaining budget reported after the slow response, with parsing headroom for parallel CI. Keep hard base-stage and zero-deadline failure assertions without tight elapsed-time caps around CLI setup and scheduling.
2026-11-01 03:55:30 +08:00
ldm0 5a9837461c test(indexeddb): split live cursor coverage into bounded probes
Run independent source and direction matrices in separate Runtime commands while preserving all 660 checks per realm and the existing 30-second command limit. Report the failing realm and matrix in timeout errors.
2026-11-01 03:55:30 +08:00
ldm0 e70f7e0052 refactor(messaging): decouple opaque origins from storage partitions 2026-11-01 03:18:59 +08:00
ldm0 a8bf7545e0 refactor(runtime): remove legacy current-context owner carriers
Use native Context bindings for Window and Worker owner lookup and Worker XHR detection. Remove the redundant private Worker state carrier while preserving Document retention, lifecycle validation and explicit Window receiver lookup.
2026-11-01 02:44:16 +08:00
ldm0 b0bbe6280a fix(messaging): separate opaque origins from storage nonces
Resolve Window origins through native realm identities and preserve inherited identities for blank documents and Blob Workers. Discard rejected MessagePort payloads through the existing recursive attachment cleanup path.
2026-11-01 02:44:16 +08:00
ldm0 fc56662fab fix(messaging): preserve opaque origins in Wasm message checks
Carry native opaque origin identity and agent-cluster metadata through message serialization and admission instead of flattening origins into strings. Apply the checks consistently to Window, MessagePort and BroadcastChannel delivery, with Wasm and sandboxed-origin regressions.
2026-11-01 02:44:16 +08:00
ldm0 4422ff9106 fix(websocket): preserve WebSocketError message code units
Original-commit: b1aaba77adced84da7907a1c323f67de9c1a9d59
2026-11-01 02:30:18 +08:00
ldm0 e91776e191 test(webidl): cover native TextEncoder destination view policies
Original-commit: 67f583f9e9427b39a060988af292f4c78974fcf3
2026-11-01 02:29:49 +08:00
ldm0 268f7e8e5a fix(streams): notify transfer peers of deserialization errors
Send a terminal DataCloneError to the peer when transferred readable or writable messages cannot be deserialized. Verify source cancellation, remote writer rejection, exception realms and endpoint cleanup in sandboxed recipients.
2026-11-01 02:29:13 +08:00
ldm0 d2156fa405 fix(streams): cancel readable sources when transfer fails
Cancel the original readable source when chunk serialization or protocol delivery fails. Release the channel before invoking reentrant cancellation callbacks, handle rejected cancellation promises, and verify both local and remote terminal state and endpoint cleanup.
2026-11-01 02:29:13 +08:00
ldm0 3e3a3ff8e6 fix(streams): serialize transferred chunks with MessagePort metadata
Serialize transferred stream chunks through the source MessagePort so origin and agent-cluster checks also apply to WebAssembly.Module values. Verify readable and writable cross-realm delivery, chunk identity and endpoint cleanup.
2026-11-01 02:29:13 +08:00
ldm0 1ed250a5ca fix(websocket): validate receivers with native brands
Use the shared native WebIDL brand for WebSocket methods, attributes and event handlers. Retain registered native proxies, reject forged and author-proxy receivers before conversion, and preserve callee-realm exceptions. Remove prototype-chain based receiver detection.
2026-11-01 02:27:26 +08:00
ldm0 5f5c7c8c95 fix(websocket): ignore unknown binaryType attribute values
Setting binaryType to an unknown enum token must preserve its current value after DOMString conversion. Continue propagating conversion errors and cover native Window, page and ported WebSocket behavior.
2026-11-01 02:27:26 +08:00
ldm0 4f6c97a5e3 fix(iframe): finish initial loads around javascript navigation failures
Finish the initial iframe load before settling javascript navigation and preserve that completion when javascript execution throws. Keep the owner lifecycle transitions and the initial-load, navigation and exception regressions together.
2026-11-01 02:11:34 +08:00
ldm0 c1393e6b1d fix(indexeddb): release finished transaction resources 2026-11-01 01:57:55 +08:00
ldm0 bd225bb86e fix(dom): derive getHTML options and ShadowRoot sequence conversion
Replace the handwritten array-like getHTML options walker with the shared WebIDL dictionary and branded ShadowRoot sequence converters. Preserve getter and iterator exception identity, primitive dictionary rejection and receiver checks before conversion. Acquire native serialization state after author getters and iterators finish; retain main serialization behavior.
2026-11-01 01:20:40 +08:00
ldm0 b7bde824e8 fix(indexeddb): keep argument errors in the binding realm
Original-commit: a714a2d70d4aaf744ec27f63c78ee05ef271b976
2026-11-01 01:00:34 +08:00
ldm0 67f6bd6ba6 perf(drag): read payloads only for accepted interception 2026-11-01 00:59:42 +08:00
ldm0 a40fd33abe fix(url): restrict object URL statics to supported realms
Original-commit: 41edcafd857f3153fb7dfbe63f8e2ab668395920
2026-11-01 00:58:58 +08:00
ldm0 1f0dc4e011 chore(browser-profile): update default Chrome version to 156.0.8078.74 2026-11-01 00:58:17 +08:00
ldm0 151e6cb154 fix(test-support): drive local producers while awaiting Page work
Original-commit: f1e7336fda9a9bb007618ca32135e47bf3fb1654
2026-11-01 00:26:57 +08:00
ldm0 48b7e3e6b4 perf(message-port): poll endpoint and queue under one lock 2026-11-01 00:26:42 +08:00
ldm0 6c4197d2ad perf(xml): serialize subtrees into one output buffer 2026-11-01 00:10:34 +08:00
ldm0 64413a6d12 fix(worker): keep navigator caches out of Window identity checks
Original-commit: a00543a4078c5b2a3214f57ed6b8f38a766940e3
2026-11-01 00:09:32 +08:00
ldm0 4726fd4a26 refactor(dom): remove obsolete fragment prototype lookup 2026-11-01 00:05:45 +08:00
ldm0 d9b2db2b17 test(bidi): validate locale extension stress-test prefixes 2026-11-01 00:05:32 +08:00
ldm0 8156f216fa fix(encoding): preserve x-user-defined form and URL output
Original-commit: d32ba4f0ec67d29eeba71a759891e311ee3f1fc0
2026-10-31 23:26:58 +08:00
ldm0 59b0aa9754 fix(worker): send typed Fetch Metadata for worker main scripts
Set SameOrigin mode and native Worker/SharedWorker destinations on dedicated, nested and shared worker main-script requests. Retain CORS mode for module imports and honor nested worker script-kind credentials.

Validation (32 build jobs / test threads, zero retries):

- `cargo fmt --all`
- `cargo clippy --workspace --all-targets --all-features -- -D warnings`
- `cargo nextest run --no-fail-fast`: Summary [ 133.978s] 22032 tests run: 22032 passed (9 slow), 19 skipped
2026-10-31 21:23:14 +08:00
ldm0 75a0e87674 fix(fetch): restrict automatic Sec-Fetch-User to navigation
A retained top-level cookie context must not mark a non-navigation Fetch
as user-activated. Restore the navigation-mode guard at the shared emitter.

Cover absent initiators across CORS modes, restore HTTP and HTTPS Origin
redirect cases, assert exact redirect site metadata, and preserve explicit
embedder headers without duplication.
2026-10-31 21:23:14 +08:00
ldm0 3516e967a5 fix(fetch): gate Metadata headers on each trustworthy destination
Use one Fetch Metadata emission path for browser navigations and subresources. Suppress generated Sec-Fetch headers when the current destination is not potentially trustworthy, including after redirects, while retaining loopback and localhost HTTP support.

Validation (32 build jobs / test threads, zero retries):

- `cargo fmt --all`
- `cargo clippy --workspace --all-targets --all-features -- -D warnings`
- `cargo nextest run --no-fail-fast`: Summary [ 152.548s] 22026 tests run: 22026 passed (9 slow), 19 skipped
2026-10-31 21:23:14 +08:00
ldm0 2dd72ca458 fix(performance): distinguish cached and validated resource transfers
The existing from_cache flag collapses fresh local responses and revalidated 304 responses into the same state, producing incorrect Resource Timing transferSize.

Carry explicit cache state through buffered and streamed fetches, navigation, subresource snapshots and response interception. Resource Timing reports zero transfer for local hits, validation overhead for merged 304 responses, and body bytes plus header overhead for network responses. Cover disk and memory cache state in the HTTP timing fixture and native response tests.
2026-10-31 20:06:00 +08:00
ldm0 dc75f53ea9 test(cdp): arm prepared document.open after parser EOF
Start the held Fetch from interactive readystatechange so the fixture establishes its intended defer-wait boundary. A speculative script request is not an EOF signal. Retain both normal/crashed modes and every history, adoption and result assertion without changing timeouts or retry policy.

Validation (32 build jobs / test threads, zero retries):

- `cargo fmt --all`
- `cargo clippy --workspace --all-targets --all-features -- -D warnings`
- `cargo nextest run --no-fail-fast`: Summary [ 140.487s] 22001 tests run: 22001 passed (9 slow), 19 skipped
2026-10-31 18:55:48 +08:00
ldm0 e340190114 fix(fetch): propagate explicit referrers and preflight policies
Carry validated Fetch referrers through Window and Worker request construction and preserve selected referrers and policies on buffered and streaming CORS preflights.

Validation (32 build jobs / test threads, zero retries):

- `cargo fmt --all`
- `cargo clippy --workspace --all-targets --all-features -- -D warnings`
- `cargo nextest run --no-fail-fast`: Summary [ 145.746s] 22001 tests run: 22001 passed (9 slow), 19 skipped
2026-10-31 18:55:48 +08:00
ldm0 3c826bd1e8 fix(referrer): use delivered Document policies for Fetch and XHR
Read effective policies from native Document delivery state and preserve them in Fetch and both XHR transport paths. Remove obsolete subtree rescanning and response-only owner lookups.

Validation (32 build jobs / test threads, zero retries):

- `cargo fmt --all`
- `cargo clippy --workspace --all-targets --all-features -- -D warnings`
- `cargo nextest run --no-fail-fast`: Summary [ 141.923s] 21998 tests run: 21998 passed (9 slow), 19 skipped
2026-10-31 18:55:48 +08:00
ldm0 15812c1d21 feat(dom): retain delivered meta referrer policy on each Document
Retain valid delivered meta referrer policies on their native owner Document. Preserve delivery ordering and independent cloned Document state.

Validation (32 build jobs / test threads, zero retries):

- `cargo fmt --all`
- `cargo clippy --workspace --all-targets --all-features -- -D warnings`
- `cargo nextest run --no-fail-fast`: Summary [ 133.798s] 21996 tests run: 21996 passed (9 slow), 19 skipped
2026-10-31 18:55:48 +08:00
ldm0 fceead4264 test(indexeddb): release registry before connection probes
Snapshot database clients before waiting for owner callbacks. Holding the
registry guard across those waits can block maintenance on the single SQL
scheduler, preventing the callbacks from running.

Add a forced maintenance-overlap regression for the connection inventory;
retain the existing timeouts and physical-connection assertions.
2026-10-31 17:07:52 +08:00
ldm0 dc7c78c38c fix(geometry): convert matrix constructor union inputs 2026-10-31 17:07:52 +08:00