Commit Graph
2525 Commits
Author SHA1 Message Date
ldm0 0c765c19f8 fix(fetch): avoid deadlocks when continuing intercepted documents
Reuse streaming response background navigation after request and authentication interception so parser-blocking scripts can progress without wedging other CDP clients. Cover document-only and all-request interception with authentication handling on and off. Fixes #2006.
2026-10-29 17:39:23 +08:00
ldm0 390ca0d209 fix(xml): reconcile namespace declarations during serialization
Reconcile explicit declarations with generated element and attribute prefixes without changing the source DOM. Add namespace-preserving serialize/parse coverage for default and prefixed declaration conflicts.
2026-10-29 15:49:24 +08:00
ldm0 3fe2375a6c fix(dom): construct internal objects through captured intrinsics
Allocate internal Range objects through the stored interface intrinsic and initialize them once. Capture native Reflect.construct during bootstrap for HTML constructor forwarding, avoiding author-controlled globals.
2026-10-29 15:41:15 +08:00
ldm0 31e00c3feb fix(dom): record same-value namespace attribute writes
Queue observer records for every same-value attribute write, including setAttributeNS and dataset. Keep meta declaration processing independent so it does not queue a duplicate record.
2026-10-29 15:39:43 +08:00
ldm0 8cdb89fc14 fix(html): use actual attribute identities for meta refresh
Report the matched Attr local name and namespace from ordinary and namespace-aware writes, then match refresh attributes exactly. Cover unrelated uppercase/namespaced mutations and ordinary HTML case folding in both main and child Documents.
2026-10-29 15:39:43 +08:00
ldm0 d440165262 fix(dom): allocate detached Document attributes in their realm
Share Attr allocation in the target Document realm across live and detached Document factories. Keep argument conversion and name validation in the calling method realm.
2026-10-29 15:31:08 +08:00
ldm0 26a5268544 feat(indexeddb): coordinate native versionchange acknowledgements 2026-10-29 09:09:56 +08:00
ldm0 c64aa5d8ad fix(indexeddb): abort invalid unique index builds in request order 2026-10-29 08:49:01 +08:00
ldm0 99a9040445 fix(indexeddb): preserve explicit committing transaction state 2026-10-29 08:49:01 +08:00
ldm0 100f526622 fix(indexeddb): preserve native transaction attributes and abort reasons 2026-10-29 08:49:01 +08:00
ldm0 51e572786b fix(indexeddb): preserve native database connection attributes 2026-10-29 08:49:01 +08:00
ldm0 75ad372bab fix(indexeddb): store native DOMException payloads 2026-10-29 08:45:07 +08:00
ldm0 5a4588fbd0 fix(fonts): skip discarded anonymous flex and grid text 2026-10-29 03:49:54 +08:00
ldm0 fcd3f00328 fix(input): preserve root screen coordinates in iframe events 2026-10-29 03:48:19 +08:00
ldm0 7c5e1e15f2 test(observers): cover CSS token based margin emptiness
Extracted from wpt-misc-fix (926ed2904f).

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (32 build jobs / test threads).
Summary [ 130.168s] 20924 tests run: 20924 passed (9 slow), 19 skipped
2026-10-29 03:44:41 +08:00
ldm0 aac5817566 fix(bidi): restart iframe lifecycle after document.open 2026-10-29 03:28:47 +08:00
ldm0 d3edac616e fix(bidi): attribute popup openers to their initiating frame 2026-10-29 03:28:47 +08:00
ldm0 dd6ee140da test(bidi): cover nested frame retirement on middle navigation 2026-10-29 03:28:47 +08:00
ldm0 a4d40e37df fix(bidi): retain popup opener in frame replay 2026-10-29 03:28:47 +08:00
ldm0 863f997a99 refactor(protocol): publish frame facts independently of CDP subscriptions
Maintain Frame identity and lifecycle facts without Page observer flags. Project
CDP notifications separately, replay existing BiDi contexts from the core index,
and capture detached subtrees before teardown. Cover the public behavior against
Chrome and update event-based fixtures to subscribe or observe renderer state.
2026-10-29 03:28:47 +08:00
ldm0 422ab481fc refactor(protocol): share frame ownership through a canonical index 2026-10-29 03:28:47 +08:00
ldm0 d4f4a27d32 refactor(protocol): unify document lifecycle facts across projections 2026-10-29 03:28:47 +08:00
ldm0 db0e4923d4 fix(bidi): isolate iframe request IDs and initialize first subscriptions 2026-10-29 03:28:47 +08:00
ldm0 678a726145 fix(bidi): preserve background iframe event ownership 2026-10-29 03:28:47 +08:00
ldm0 072ac1a58e fix(svg): enforce SVGLength float boundaries and finite unit conversion
Convert numeric inputs through WebIDL Float before mutation and retain
float getter precision and short serialization for direct float inputs.
Keep derived unit values in f64 so narrowing cannot produce infpx or erase
nonzero results. Preserve atomic rejection and reflected/list-valued state.

Cover numeric rounding, overflow, underflow, conversion side effects,
serialization roundtrips and main/iframe realms.

Cover absolute-unit numeric roundtrips with a shared browser probe across
cm/in/px, both setters, standalone/reflected/list values and two realms.
Check float input conversion, serialized-value reparsing and pixel/unit
roundtrips within one float ULP; retain the runtime conversion algorithm.
2026-10-29 02:54:08 +08:00
ldm0 7f08c25f08 fix(dom): preserve template document identity and adoption lifecycles
Share a lazy inert owner across each document's template contents and keep
HTML/XML semantics, interface identity, and template-owner state separate.
Cloning preserves interfaces while creating independent owner state.

Separate portable Document metadata from arena-local relationships. Use
one metadata-copy boundary for Document cloning and main-document
replacement, clearing template-owner and CSS-target handles while keeping
whole-DOM snapshots and copy-on-write storage relationships intact. Metadata
copies also discard base-element href/target caches while retaining about
base URLs and explicit overrides; only DOM node cloning freezes computed
base URLs. Detached Document URL readers use native metadata without JS
URL/documentURI/baseURI shadow state, including selector and bridge readers.

Apply the DOM-specific document cloning rules separately: freeze the source
computed base URL as an override, separately retain the inherited about
base URL, and rebuild base-element caches from the cloned tree. Preserve
main-document replacement metadata semantics.

Establish exact HTML template identity and associated fragment allocation
in one native entry shared by DOM and parser creation. Clone actual native
contents rather than guessing from names, preserving foreign and mixed-case
elements through serialization, deep cloning, import and adoption. Keep HTML
createElement normalization at its binding boundary; namespace-aware creation
and wrapper selection preserve the exact local name, including registry paths.

Plan per-node adoption targets across ordinary children, shadow roots and
template contents. Retarget custom-element registries and callbacks with
the actual destination documents, and clear cross-document shadow sheets
while retaining sheets within a document and its own template owner.
Avoid preparing unused inert style sources.

Cover cross-arena ID collisions, metadata preservation, snapshot isolation,
nested templates, deep adoption, iframe/detached documents, cloned
interfaces, retained sheet arrays, registry associations and URL behavior.
2026-10-29 02:54:08 +08:00
ldm0 76452ba10a fix(input): isolate DataTransfer event views from shared drag data 2026-10-29 02:24:43 +08:00
ldm0 8958a19f47 fix(input): carry read-only DataTransfer through drop editing events 2026-10-29 02:24:43 +08:00
ldm0 7364a7f525 feat(indexeddb): add native FIFO connection request leases 2026-10-29 00:06:47 +08:00
ldm0 c670161bc5 perf(cdp): collect DOM mutations only for published sessions
Keep internal WebDriver and BiDi snapshot bindings independent of Inspector mutation collection. Update capture interest when nodes are published or retired, a session detaches, or a Document is replaced; project facts only to published sessions.

Share the interest policy with the synchronous DOMDebugger publisher and preserve MutationObserver recording. Regression tests count all three mutation fact types and cover multiple subscribers, disable, detach, and document.open().
2026-10-29 00:01:33 +08:00
ldm0 83e7091c5a fix(cdp): enforce DOM node publication across commands
Separate backend identity, session frontend bindings, and publication. Publish missing Inspector paths before returning usable node IDs, validate CDP frontend inputs, and retain explicit internal automation bindings.

Preserve expanded and associated subtrees during refresh and mutation resync, including shallow template fragments. Cover cross-command behavior and message ordering with a raw CDP client mirror, Chromium comparisons, and real chromedp queries.
2026-10-29 00:01:33 +08:00
ldm0 3c9ce8019d fix(indexeddb): expose a readonly worker prototype accessor
Install WorkerGlobalScope.indexedDB through the generated receiver binding and keep lazy SameObject identity in the private realm cache. Cover Dedicated, Shared, Service and opaque-origin workers, illegal receivers, readonly assignment, author shadows and lazy materialization.
2026-10-28 23:43:04 +08:00
ldm0 fbf8023323 fix(indexeddb): deduplicate multiEntry index keys per record 2026-10-28 23:38:05 +08:00
ldm0 9b8b4cd44e perf(indexeddb): restore prepared write values only when needed
Store prepared bytes directly when execution does not need to inspect the value. Restore the snapshot lazily for generated inline keys and unique-index constraints, and share that restored value when both paths need it. Remove the write executor's unused boolean result; request completion remains the sole result channel.

Add main/child-realm coverage for started and queued writes with no indexes, nonunique indexes, unique indexes, and generated inline/out-of-line keys. Verify call-time snapshots, Date/Map values, generated-key injection, duplicate rejection, and transaction completion. The same fixture passes Chromium 145 and 147.

Validation: cargo fmt --all; strict all-feature workspace Clippy;
cargo nextest run --no-fail-fast (20723 tests run: 20723 passed (9 slow), 19 skipped).
2026-10-28 22:52:34 +08:00
ldm0 488c3bc464 fix(indexeddb): defer invalid write keys until after serialization
Keep missing, invalid, and valid object-store keys as distinct native outcomes shared with inline key-path extraction. Propagate JavaScript exceptions from key conversion immediately, while checking ordinary invalid keys only after value serialization, matching Chromium error precedence. Request creation and generated-key consumption remain after synchronous preparation.

Add main/child-realm regressions for put/add, started and queued transactions, invalid scalar/array/date keys, getter order and original exception identity, request-state counts, and unchanged generated keys. The new regression fails on the previous head and the same fixture passes Chromium 145 and 147.

Validation: cargo fmt --all; strict all-feature workspace Clippy;
cargo nextest run --no-fail-fast (20722 tests run: 20722 passed (9 slow), 19 skipped).
2026-10-28 22:52:34 +08:00
ldm0 b61cd2b0bd fix(indexeddb): validate cursor mutations before request admission
Validate cursor mutation state and key availability without allocating a request. Cursor.update serializes with the transaction inactive, verifies inline keys against the clone, and only then admits the request into the shared object-store executor. Synchronous clone/key failures leave no pending request or native lifecycle state; updating storage preserves the cursor's current value snapshot.

Share the precondition context with cursor.delete so readonly mutations throw synchronously before cloning or request allocation. Remove the unused public-keyPath conversion helper and correct the legacy readonly test. New main/child-realm regressions cover successful persistence after rejected updates, original getter exceptions, getter reentrancy, native request state, and readonly update/delete behavior.

Validation: cargo fmt --all; strict all-feature workspace Clippy;
cargo nextest run --no-fail-fast (20721 tests run: 20721 passed (9 slow), 19 skipped).
2026-10-28 22:52:34 +08:00
ldm0 050c8fadfb fix(indexeddb): prepare write snapshots before request admission
Queued put/add calls now validate and serialize their values and keys at the API boundary. Only a successfully prepared native snapshot can create a request or enter the deferred queue. Started and queued transactions share one storage executor; failed synchronous calls allocate no request lifecycle state and cannot consume autoIncrement keys.

Serialize with the transaction inactive, propagate the original getter exception, and derive inline keys from the clone's own properties. Validate key injection before admission, generate keys only in storage execution, and remove the compensating discard_unreturned_request path. Unsupported explicit keys report DataError. Regressions exercise started/queued writes, snapshots, generated keys, getter reentrancy and exception identity, native request-state counts, and same-origin child realms; correct the earlier getter-error expectation.

Validation: cargo fmt --all; strict all-feature workspace Clippy;
cargo nextest run --no-fail-fast (20719 tests run: 20719 passed (9 slow), 19 skipped).
2026-10-28 22:52:34 +08:00
ldm0 70da688622 fix(media): validate volume and queue native volumechange tasks
Extracted from wpt-misc-fix (3bda581f5e).

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (32 build jobs / test threads).
Summary [ 131.669s] 20925 tests run: 20925 passed (9 slow), 19 skipped
2026-10-28 21:34:45 +08:00
ldm0 63473feb30 fix(indexeddb): report required argument counts in method lengths
Set put/add length to 1 and count/openCursor/openKeyCursor length to 0
through the existing ObjectStore and Index bindings. Align the existing
descriptor test with Web IDL and record the verified Window idlharness pass.

The official Window and Worker IDL suites resolve 16 failing subtests;
Window now passes all 207 assertions.

Validation: cargo fmt --all; strict workspace clippy; cargo nextest run
--no-fail-fast (19209 passed, 13 skipped). No new regressions in 442 WPTs.
2026-10-28 21:29:49 +08:00
ldm0 e28d3ddb1e docs: crop black corners from README banners
Crop 16 pixels from every edge of the original light and dark JPEG banners
using lossless JPEG coefficient transforms. This removes the black corner
pixels while preserving the existing JPG filenames and README references.

Validated JPEG format, original quantization and sampling, and identical
interior pixels; visually reviewed both banners and ran git diff --check.
2026-10-28 21:19:38 +08:00
ldm0 853c1564c7 docs: add Product Hunt daily winner badge
Display the official #1 Product of the Day badge in the English README and
all six translations, with matching light and dark variants. Link the badge
to the Moli by Lexmount launch.
2026-10-28 20:49:58 +08:00
ldm0 c613eb53bc fix(indexeddb): validate pending cursor iteration 2026-10-28 19:46:53 +08:00
ldm0 1a09036349 fix(indexeddb): protect cursor state and collect native snapshots 2026-10-28 19:46:52 +08:00
ldm0 5fe37bb935 feat(indexeddb): support native records and bulk query options 2026-10-28 19:46:52 +08:00
ldm0 94cee60020 fix(indexeddb): wait for upgrade requests before completing open 2026-10-28 19:46:52 +08:00
ldm0 58fb56b56e fix(bidi): resolve child-frame cookie storage owners 2026-10-28 19:32:35 +08:00
ldm0 cb930ef5d9 fix(storage): validate BiDi cookie numeric bounds 2026-10-28 19:32:35 +08:00
ldm0 7b94c7459e fix(storage): honor BiDi cookie partition descriptors 2026-10-28 19:32:35 +08:00
ldm0 c94117256f fix(indexeddb): complete canceled admissions across event loops 2026-10-28 18:00:27 +08:00
ldm0 dcb119b852 fix(indexeddb): block deletion until closing transactions finish 2026-10-28 18:00:27 +08:00