Commit Graph
308 Commits
Author SHA1 Message Date
ldm0 9afdacc1df fix(import-maps): merge maps after module loading 2026-11-19 00:05:19 +08:00
ldm0 50afc99a51 fix(events): preserve inline handler ordering 2026-11-19 00:05:18 +08:00
ldm0 82d5dbf6a4 fix(renderer): complete tabular element reflection 2026-11-19 00:05:17 +08:00
ldm0 02d8f96d48 test(modules): isolate malformed child parser JSON from valid imports
Extracted from wpt-misc-fix commit d313c717fba5f77b21a09930e4fc8dfc104298d6.
2026-11-18 22:04:42 +08:00
ldm0 2e37a7a8d9 fix(preload): derive load events from Fetch results
Extracted from wpt-misc-fix commit 3e7aac0bf96a1ed5291e5991d40e51ec64127a8e.
2026-11-18 21:47:02 +08:00
ldm0 f8c2212fb8 test(fetch): cover UTF-8 BOM decoding in Request streams
Extracted from wpt-misc-fix commit af8353408876f1cb8a2fac98ebadf24359b7f5f1.
2026-11-18 19:47:21 +08:00
ldm0 be4a1c2fe8 test(indexeddb): extend key-range coverage to binary bounds and bulk operations
Extracted from wpt-misc-fix commit 7164c7cb090dfd4ab0f92fc31c3a5026c39f3868.
2026-11-18 19:47:07 +08:00
ldm0 3ecc957f1a test(indexeddb): cover binary queued query snapshots
Extracted from wpt-misc-fix commit 548b0c08ca312eb68dba83d1ebd999699dec37f6.
2026-11-18 19:11:54 +08:00
ldm0 f67d772e45 test(indexeddb): cover version payloads on delete success
Extracted from wpt-misc-fix commit 35edf0848c256969f6c0e40bdbe84e50a0effa47.
2026-11-18 19:11:26 +08:00
ldm0 1a770232e5 refactor(devtools): isolate page DOM frontend modules 2026-11-18 19:09:35 +08:00
ldm0 2206f32f40 refactor(devtools): isolate optional runtime modules 2026-11-18 19:09:35 +08:00
ldm0 2c4f149c30 fix(devtools): close optional configuration gates
Compile renderer tests without DevTools and run the standalone consumer against a local fixture. Route Service Worker client notifications through WorkerNavigator in worker realms.
2026-11-18 19:09:35 +08:00
ldm0 3ce8ad6cd8 feat(devtools): make external renderer automation optional 2026-11-18 19:09:35 +08:00
ldm0 faf4ab968f fix(iframe): reload unchanged src during load callbacks
Extracted from 9ab13e46f8 on wpt-misc-fix.
2026-11-18 16:42:25 +08:00
ldm0 68d6d03838 fix(network): preserve form Origin and apply post-formdata policy 2026-11-18 00:10:43 +08:00
ldm0 5d222fe043 feat(browser): align disabled web security with Chromium instance policy 2026-11-18 00:10:43 +08:00
ldm0 951880d512 fix(referrer): snapshot the creator policy for initial child Documents
Extract an independent, cohesive change from wpt-misc-fix.

Source-commit: 7bf4ce062b
2026-11-17 05:33:17 +08:00
ldm0 e156df3ed3 fix(preload): emit load for non-stylesheet HTTP error responses
Extract an independent, cohesive change from wpt-misc-fix.

Source-commit: 92a989249d
2026-11-17 05:19:25 +08:00
ldm0 47399e4ec6 fix(files): prepare shared directory selections off the protocol thread 2026-11-16 19:42:47 +08:00
ldm0 ed9ad079c2 refactor(worker): own fetch and XHR loading natively
Give each load a stable native network handle and single-use interception ports. Keep Worker Promise settlement separate from network completion, route observations to Worker targets, and remove the parent request table and continuation messages.

Cover cancellation, streaming, request overrides, authentication, CSP and Service Worker responses. Keep the bucket-deletion test transaction active until retirement instead of racing its normal auto-commit.
2026-11-16 15:23:35 +08:00
ldm0 d4a2d8e8e9 test(ci): stabilize redirect, idle, and IndexedDB timing 2026-11-16 14:27:39 +08:00
ldm0 1a752c0181 fix(webdriver): preserve raw key locations in actions 2026-11-15 16:56:15 +08:00
ldm0 6d5e8580b0 fix(input): preserve keyboard event location through dispatch 2026-11-15 16:56:15 +08:00
ldm0 7ca5ce7d4b refactor(types): group fetch and page types under moli-types 2026-11-15 14:41:50 +08:00
ldm0 abcff16028 fix(fetch): limit idle waiting to initial page readiness 2026-11-15 00:48:02 +08:00
ldm0 9247282d21 fix(fetch): complete idle liveness and deadline enforcement 2026-11-15 00:48:02 +08:00
ldm0 03776063e6 feat(fetch): add event-loop idle wait mode
Wait for user timers, native async operations, dedicated workers, WebSockets and receiving MessagePorts using their existing resource owners and Page task sources. Finish a microtask checkpoint before observing exhaustion, drain terminal callbacks, and follow replacement navigations through the shared idle wait driver.

Apply the existing absolute timeout to idle readiness and recheck after automation scripts. Keep internal AbortSignal timeouts and transferable-stream plumbing from independently retaining the loop. Add CLI and native observer regressions.
2026-11-15 00:48:02 +08:00
Noz Wu 3a2dbae84a feat(core): expose renderer output transport sender 2026-11-14 23:49:01 +08:00
ldm0 1f39109d81 test(stylesheets): gate href mutation fetches on parser progress
Source-commit: f7d6e3b781
2026-11-14 23:35:44 +08:00
ldm0 1fc3848c6c fix(download): stream child-frame attachments with sandbox checks 2026-11-14 23:13:54 +08:00
ldm0 aae86aac05 fix(fetch): apply effective request overrides before fulfillment
Apply accumulated URL, method, upload and scoped-header edits before fulfilling a request. Share RequestOverrides with continuation and centralize pending request snapshot updates, so a later session fulfilling 307/308 retains the effective request body and relative-URL base.
2026-11-14 16:35:43 +08:00
ldm0 6206b093c4 fix(fetch): carry exact interception class sets
Adapt the class-set work from #2704 to native synchronous XHR from #2729. Keep URL, stage and session matching with protocol owners while excluding unrelated resource classes before native routing.
2026-11-14 02:56:32 +08:00
ldm0 dbaf8d0617 fix(xhr): process interception decisions before response body EOF
Expose ordinary controlled hop headers with a cancellable pending body so
response pauses, redirects and initial auth challenges can advance before EOF.
Share native capture with Fetch body reads and scoped IO streams; retire the
original transfer on fail, fulfillment or stream close without Page reentry.

Add body-gated Window/Worker and sync/async regressions and preserve resumed
XHR streaming. Drain two existing protocol fixtures through actual stream EOF.
2026-11-13 22:37:15 +08:00
ldm0 9e357b95e4 feat(xhr): keep network interception live during synchronous sends
Route intercepted Window and dedicated Worker XHR through shared native
request, authentication and response decisions. One-shot pause ports let the
existing protocol/session machinery continue, fail or fulfill a request
without queueing a Page command behind its suspended JavaScript stack.

Publish native network facts across an explicit synchronous-wait scope, preserve
normal asynchronous streaming delivery, and cancel loads before owner
teardown. Remove the synchronous-only URL-rule copy and retain the canonical
protocol matcher, session chains and request identities.

Cover Page task suspension, independent protocol decisions, binary overrides,
CORS preflight, authentication, redirects, streaming, multi-session cleanup,
Worker termination and target close. Await actual callback/command identities
where network acknowledgements no longer imply Page delivery has finished.
2026-11-13 22:37:15 +08:00
ldm0 e8ce829d88 fix(xhr): enforce exact interception URLs for synchronous requests 2026-11-13 22:37:15 +08:00
ldm0 7131157013 refactor(renderer): capture Page window identity before document creation 2026-11-13 22:16:31 +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 1ed0e2238e fix(cdp): apply late request policy before commit projection
A newly committed native Document can execute before its commit output has
been projected into protocol state. Routing Fetch.enable through the
projected binding then updates a loaded predecessor or no Page at all,
allowing requests to bypass interception after a successful ACK.

Address restricted request-policy updates to the synchronously admitted
renderer Page and wait for native completion. Reuse this route for Fetch
cleanup and blocked URLs without granting general unbound Document access.

Hold actual native commit publications in the regression and inspect the
exact evaluation output fence. Cover new/replaced Pages with interception
enable/disable and blocked URLs, with no external I/O in negative controls.
The original controlled reproducer fails 3/3 on the rebase baseline.

Validation: fmt; workspace/all-targets/all-features Clippy; 23,026 Nextest
passed, 20 skipped; three targeted tests x20 and 30 module tests x5, all
without retries.
2026-11-13 01:42:40 +08:00
ldm0 b8190ee87d refactor(indexeddb): address SQL schema by stable IDs
Use the persisted StoreId and IndexId in SQL commands, transaction scopes and renderer handles. Reserve IDs without waiting for the SQL owner and recover their counters with committed disk metadata.

Remove name-based request targets, separate renderer identity tokens and cursor name refresh. Cover concurrent reservations, abort, idle reconnect, catalog recovery, restart, stale IDs and old-name reuse.
2026-11-13 01:39:46 +08:00
ldm0 ff19670cf9 fix(indexeddb): freeze request sources after argument conversion 2026-11-13 01:39:46 +08:00
ldm0 aef25efaba test(indexeddb): cover rename source identity and upgrade rollback
Exercise name validation, admitted reads and writes, value and key cursors, reused names, cross-realm aliases, and explicit or constraint-driven upgrade aborts in Window, child and Worker contexts.
2026-11-13 01:39:46 +08:00
ldm0 03050ca66d fix(fetch): retain native service worker navigation requests 2026-11-12 20:10:31 +08:00
ldm0 e363e2d81d fix(cdp): retain protocol body projections across redirects 2026-11-12 20:10:31 +08:00
ldm0 f0c484b7d8 fix(indexeddb): validate clear before creating requests
Source-commit: dd415580ac
2026-11-12 17:25:11 +08:00
ldm0 e7ac1c1a4a refactor(fetch): share response state across workers and caches 2026-11-12 16:31:24 +08:00
ldm0 b20ff14ff9 refactor(inspector): derive response IDs and make parsing explicit 2026-11-12 03:32:12 +08:00
ldm0 32e0dfce3a test(core): isolate streamed raw response deadline checks
Keep the raw Page rejection on its streaming entry point while the server
holds the body, without racing a 100ms response-header budget.

Move the body-specific deadline case to prepared streaming headers and the
real body materializer. Retain the 100ms budget and typed body phase, and
assert transfer cancellation and channel release.
2026-11-12 03:10:33 +08:00
ldm0 c18562d71c fix(fetch): bind service worker requests before synthetic redirects
Capture the loader's browser cookie scope on the retained Service Worker
request before a synthetic redirect advances its SameSite restrictions.
Reuse the transport binding to preserve frame partition keys and Storage
Access settings without applying the network-only policy early.

Add a lightweight initial-blank popup regression with a direct network
control, a synthetic SW redirect, and server-side Cookie/Referer assertions.
2026-11-12 03:10:33 +08:00
ldm0 ef0a33ae73 fix(fetch): preserve browser scope and referrer across manual redirects
Bind the request retained by the CORS redirect loop to the loader's cookie
scope before dispatching single-hop transport copies. Reuse the transport
binding so frame partition keys and Storage Access settings stay intact.

Preserve the selected referrer before Cookie origin adaptation, including
an absent referrer. Keep this in Request::follow_redirect and remove the
navigation-only duplicate.

Add live-server regressions for inherited-origin iframe fetch and sync/async
XHR, plus a multi-hop referrer test with a permissive response policy.
2026-11-12 03:10:33 +08:00
ldm0 1ed7e997bb test(core): assert stylesheet readiness without timing thresholds 2026-11-12 02:01:08 +08:00