Commit Graph
3391 Commits
Author SHA1 Message Date
ldm0 ea3f6d2b90 docs: remove inline SVG implementation details from README 2026-11-13 20:46:38 +08:00
ldm0 fe53607bd4 fix(svg): resolve projected lengths in SVG user units 2026-11-13 20:46:38 +08:00
ldm0 7c8656b816 fix(svg): share serialized traversal for source identities 2026-11-13 20:46:38 +08:00
ldm0 16861c2e39 test(scripts): cover dynamic Function import provenance in the renderer
Source-commit: 1bda521175
2026-11-13 19:34:41 +08:00
ldm0 cbbcf11703 perf(renderer): keep owned snapshot assembly shared 2026-11-13 19:26:46 +08:00
ldm0 d352ee1a19 perf(html): share shadow formatting and long text loops 2026-11-13 19:26:46 +08:00
ldm0 aff75c6b9d perf(renderer): borrow validated frame documents during export 2026-11-13 19:26:46 +08:00
ldm0 1f7e36e0b8 perf(html): borrow shadow metadata and advance sibling cursors 2026-11-13 19:26:46 +08:00
ldm0 67dd2f445b perf(v8): internalize named private API keys 2026-11-13 19:26:46 +08:00
ldm0 532b83db5d perf(html): stream sparse text runs without growing peak buffers 2026-11-13 19:26:46 +08:00
ldm0 8cfbd0e3b0 perf(html): specialize shared attribute traversal 2026-11-13 19:26:46 +08:00
ldm0 89e95f4a37 refactor(renderer): move HTML export out of frame snapshots 2026-11-13 19:26:46 +08:00
ldm0 8e4565e993 refactor(cli): stop forwarding the unused Markdown frame option 2026-11-13 19:26:46 +08:00
ldm0 7638da6bc6 refactor(html): pass shared serialization options through DomHost 2026-11-13 19:26:46 +08:00
ldm0 20fc626aa5 refactor(html): share effective attribute traversal across frame boundaries 2026-11-13 19:26:46 +08:00
ldm0 195ed413d1 fix(html): distinguish namespaced frame export attributes 2026-11-13 19:26:46 +08:00
ldm0 bd39a57adb perf(html): skip repeated frame checks in ordinary markup 2026-11-13 19:26:46 +08:00
ldm0 1c29a8a30d test(indexeddb): synchronize the SQL commit receipt boundary 2026-11-13 19:26:46 +08:00
ldm0 9cb6ffb084 perf(html): compose nested attribute escaping in one pass 2026-11-13 19:26:46 +08:00
ldm0 440d9e9f4d perf(html): bypass inactive export filters and attribute checks 2026-11-13 19:26:46 +08:00
ldm0 e98da919c2 perf(html): select frame escaping once per text value 2026-11-13 19:26:46 +08:00
ldm0 2d22d593b7 fix(html): apply export policies throughout template contents
Filter the template contents that are actually serialized and include reachable author shadow roots owned by inert Documents. Preserve inert iframe attributes without parsing or loading their raw srcdoc, and leave the live source unchanged.
2026-11-13 19:26:46 +08:00
ldm0 129b8cf640 refactor(renderer): unify read-only HTML document exports
Route page HTML, JSON and MHTML through SerializeDocument options and keep Markdown on its own command. Stream live frame Documents into srcdoc without cloning or editing DOM state, and remove copy-specific helpers. Finish core commands consistently and retain paired document metadata across auxiliary trace serialization.
2026-11-13 19:26:46 +08:00
ldm0 e2a7ff13c8 refactor(dom): add read-only HTML serialization options
Stream embedded Documents through the existing explicit traversal and keep shadow-root selection independent from its markup profile. Add bounded output, virtual insertions, output filtering, and opt-in DOM access probes. Keep ordinary output free of per-node export checks and nested escaping work.
2026-11-13 19:26:46 +08:00
ldm0 bfeadd5a6f fix(cli): preserve matched network traces during document export 2026-11-13 19:26:46 +08:00
ldm0 7fa75eb878 fix(wpt): serve ServiceWorker scope redirect delegates
Source-commit: 48640c3bf7
2026-11-13 19:18:17 +08:00
ldm0 8f139fd884 refactor(cdp): generate discovery schema at build time 2026-11-13 17:58:54 +08:00
ldm0 a788001aae perf(cdp): buffer protocol schema decoding 2026-11-13 17:58:54 +08:00
ldm0 d1473e962f build(cdp): embed protocol metadata with Brotli quality 11 2026-11-13 17:58:54 +08:00
ldm0 bc6ffe8870 fix(protocol-server): advertise Tracing result events 2026-11-13 17:58:54 +08:00
ldm0 312def0b39 test(cdp): consume discovery schema with a generated client 2026-11-13 17:58:54 +08:00
ldm0 6fe7d26fb3 fix(protocol-server): publish complete supported CDP schemas 2026-11-13 17:58:54 +08:00
Neo 孫 b6465b00c3 fix(protocol-server): advertise every implemented CDP domain in /json/protocol
/json/protocol served V8's js_protocol verbatim (Schema, Runtime, Debugger,
Console, Profiler, HeapProfiler), while the dispatcher implements 29 more
domain groups (Page, DOM, Network, Target, Input, Emulation, ...). Clients
that gate calls on the advertised protocol refused commands Moli supports.

- Derive strum::VariantNames on the action enums the dispatcher parses
  methods against, and expose moli_protocol::implemented_cdp_commands()
  (domain -> wire command names). Generated from the implementation, so
  it cannot drift.
- /json/protocol merges that list into the V8 schema once (OnceLock):
  V8 domains keep full schemas and gain any missing command names;
  Moli-implemented domains list command names only, with a description
  saying parameter schemas are not published.
- The embedded CDP_PROTOCOL_JSON constant is unchanged, so
  embedded_protocol_preserves_the_complete_vendored_schema still holds.

Tests: wire names (getFullAXTree, getDOMStorageItems, navigate; 29
domains) and the discovery endpoint test now asserts Page / DOM /
Network / Target / Runtime / Input and Page.navigate are advertised.
Reverting to the verbatim V8 schema fails it ("must advertise Page").
fmt and clippy -D warnings clean for both crates.
2026-11-13 17:58:54 +08:00
ldm0 b85c5fde5b fix(paint): apply SVG text ancestor transforms exactly once 2026-11-13 17:32:47 +08:00
ldm0 176a49a7d0 fix(svg): observe changed scenes with a coherent complete layout 2026-11-13 17:32:47 +08:00
ldm0 78eceb89a0 fix(svg): share one published scene between geometry and paint 2026-11-13 17:32:47 +08:00
ldm0 690cea9e44 fix(layout): freeze SVG object geometry with its viewport 2026-11-13 17:32:47 +08:00
ldm0 f56fe0fe18 fix(image): keep final SVG styles separate from source XML 2026-11-13 17:32:47 +08:00
ldm0 bfc13d41d3 fix(svg): provide graphics client rects for measured charts
Resolve SVG object bounds and shaped text through the shared styled SVG scene, then map them through the outer CSS viewport. Project descendant computed styles without mutating the live DOM, preserving use-instance inheritance and outer transform ownership.

Cover chart measurement and paint, Chromium-calibrated SVG geometry, referenced shapes, and the formerly empty circle client rectangle.
2026-11-13 17:32:47 +08:00
ldm0 ccbd6d09a2 refactor(webapi): declare shared Window access policies 2026-11-13 17:25:23 +08:00
ldm0 d75a43c7ca fix(network): preserve Window referrers through Service Workers
Source-commit: da4cc29333
2026-11-13 16:35:08 +08:00
ldm0 ea71094307 fix(window): enforce frameElement origin checks
Source-commit: ddd3d125ca
2026-11-13 16:30:24 +08:00
ldm0 15724a315f fix(dom): clear child Document handlers without author setters
Source-commit: f0430b350b
2026-11-13 16:24:49 +08:00
ldm0 fd83392ebc bench(inspector): scope deep fixtures to projected handles 2026-11-13 16:16:49 +08:00
ldm0 0da8d7623e refactor(inspector): derive partial response handle projections 2026-11-13 16:16:49 +08:00
ldm0 082f4b4b82 test(inspector): clarify work-item byte accounting 2026-11-13 16:16:49 +08:00
ldm0 55fda79521 fix(runtime): avoid rescanning user values in dispatcher completion 2026-11-13 16:16:49 +08:00
ldm0 9eafed1f5b fix(runtime): unify response handle and object group registration 2026-11-13 16:16:49 +08:00
ldm0 8357f19c94 perf(inspector): scan deeply serialized responses in linear time 2026-11-13 16:16:49 +08:00
ldm0 38d648a018 bench(inspector): cover real V8 deep serialization 2026-11-13 16:16:49 +08:00