Commit Graph
13 Commits
Author SHA1 Message Date
ldm0 3153df10ff fix(focus): scope autofocus to top-level documents
Give live main and popup Documents independent candidate queues and completion
flags. Admit parser and DOM API insertions through shared mutation notifications,
then flush on the owning rendering task or before its animation-frame callbacks.

Preserve document.open state, retire replaced Documents, enforce the response
policy, and resolve image-map associations in the owning Document. Clear removed
focus anchors so iframe reinsertion cannot revive a stale autofocus blocker.
2026-11-02 06:02:26 +08:00
ldm0 93a2b3335d fix(preload): consume stylesheet preload responses 2026-11-02 06:02:24 +08:00
ldm0 27ca491504 fix(preload): retain child document ownership for completions
Carry the originating Document through preload fetch completions and link
events. Create events in that Document's realm and record Resource Timing in
the request's Window instead of the parent. Keep historical network frame
identity when the Document is replaced, and retain the Window timeline across
document.open() without delivering retired link events.

Cover sibling frames, six preload destinations, cached stylesheet clients, and
gated completions across iframe navigation and document.open().
2026-11-02 06:02:24 +08:00
ldm0 c244834960 fix(stylesheet): enforce integrity before CSSOM installation
Validate raw stylesheet response bytes and response eligibility through the
shared SRI verifier. Preserve integrity rejection in fetch terminals so failed
loads dispatch error and release their load delay without installing a sheet
or discovering imports.

Require links with integrity metadata to use the compatible fetch cache instead
of hydrating an unverified parsed source by URL. Add regressions for hashing,
CORS, service-worker filters, local data URLs, redirects, and cached loads.
2026-11-02 06:02:18 +08:00
ldm0 ec92b4ab6d fix(cssom): publish parser style imports before scripts 2026-11-02 06:01:30 +08:00
ldm0 e3538c8999 fix(stylesheets): honor quirks mode MIME compatibility 2026-10-12 17:17:55 +08:00
ldm0 6ecf3f0c03 fix(css): parse stylesheet preload type hints as MIME values 2026-10-04 02:33:39 +08:00
ldm0 d86a023c35 fix(preload): share destination validation before load admission 2026-09-26 19:27:10 +08:00
ldm0 83e0afd1a1 fix(css): avoid reparsing incomplete inline styles
Process parser-created style sources after their closing tag or EOF, and
prepare later source changes through the stylesheet owner lifecycle.
Keep synchronization and CSSOM reads on prepared sources so CSSOM edits
survive reads and document initialization.

Complete styles in inert XML parsing and build the XML viewer through
ordinary DOM creation. Cover streaming, EOF, child documents, fragments,
and XML stylesheet behavior in regression tests.
2026-09-26 07:01:12 +08:00
ldm0 6d08975a69 refactor(fetch): preserve response header bytes end to end
Carry raw response header values through fetch, caches, redirects,
renderer delivery, workers, and protocol records. Convert explicitly
at WebIDL and protocol text boundaries while preserving opaque bytes.

Keep legacy CacheStorage and service worker metadata readable, and
advance the HTTP cache format for raw header values.

Validation:
- cargo fmt --all
- cargo clippy --workspace --all-targets --all-features -- -D warnings
- cargo nextest run --no-fail-fast
2026-09-23 02:02:54 +08:00
ldm0 c0a87c6960 fix(fetch): preserve committed origins for document subresources 2026-09-14 06:48:28 +08:00
ldm0 8e6dd03abc fix(renderer): settle shared stylesheet clients per owner
Keep physical stylesheet fetches and import graph work shared while installing CSSOM state and terminal events for every link owner. Settle completed clients at admission, retain completed import graphs for late owners, and validate document ownership before asynchronous installation.

This replaces the abandoned turn-exit replay path with an explicit shared-fetch/per-owner lifecycle model and adds coverage for document.write(), data URLs, imports, failures, node mutation, and document replacement.
2026-08-23 04:45:50 +08:00
ldm0 27b5135cb6 Public preview 2026-08-11 00:10:12 +08:00