Commit Graph
582 Commits
Author SHA1 Message Date
ldm0 2f17076c80 test(fetch): settle initial document before preload interception
Extracted from wpt-misc-fix commit bd4cd0ddb98436fb6253e845cc6fb3ea91dbf6e3.
2026-11-18 19:11:45 +08:00
ldm0 2206f32f40 refactor(devtools): isolate optional runtime modules 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 b9c2aa67c9 refactor(cookies): reuse navigation context for CDP reports 2026-11-18 17:32:19 +08:00
ldm0 6066b6c9c3 refactor(protocol): resolve resource state once per target 2026-11-18 16:53:15 +08:00
ldm0 dc61300081 fix(protocol): bound retained navigation stack usage
Place the large navigation state machine on the heap before retained command workflows poll it. This bounds the production navigation stack while preserving the original cancellation, reply-boundary and retained-result behavior under the default Rust thread stack.
2026-11-18 15:55:18 +08:00
ldm0 c45da1adf5 fix(cdp): release Worker Network cursors on disable 2026-11-18 14:25:57 +08:00
ldm0 e2ce469daa fix(worker): publish WebSocket events on worker targets 2026-11-18 14:25:57 +08:00
ldm0 cdb0190538 fix(worker): preserve web-security policy through native loading
Retain the native Worker loading pipeline from main and apply the instance policy and execution origin to streamed and buffered Fetch/XHR responses. Observe Network completion on the actual Worker session in policy regression tests.
2026-11-18 00:10:43 +08:00
ldm0 5ff0e8167d fix(network): complete web-security resource and worker semantics 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 d70d2e8e4a refactor(cdp): consolidate asynchronous file input preparation 2026-11-16 19:42:47 +08:00
ldm0 51bd0116c2 refactor(files): make selected file read policies explicit 2026-11-16 19:42:47 +08:00
ldm0 cb95f73c17 refactor(files): move upload regressions into a test module 2026-11-16 19:42:47 +08:00
ldm0 602a57872e fix(files): check selected snapshots before opening 2026-11-16 19:42:47 +08:00
ldm0 0b0d65298f fix(files): recheck directory upload paths for symlink replacements
Resolve the selected root once and recheck path components before queued traversal, backing creation and lazy reads. Preserve the chosen root name and explicit file selection behavior. These are best-effort pathname checks; check/open races and file identity replacement remain outside this change.
2026-11-16 19:42:47 +08:00
ldm0 47399e4ec6 fix(files): prepare shared directory selections off the protocol thread 2026-11-16 19:42:47 +08:00
ldm0 f10e9c0bcf refactor(files): retain lazy file backings for selected uploads 2026-11-16 19:42:47 +08:00
ldm0 084b68c2ef fix(files): normalize directory paths and cover CDP upload boundaries 2026-11-16 19:42:47 +08:00
ldm0 8b6e73d773 fix(files): support directory uploads and relative file paths 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 190d51d653 fix(worker): retain intercepted requests until completion 2026-11-16 15:23:35 +08:00
ldm0 715e26ed6f fix(worker): settle intercepted redirects before network completion 2026-11-16 15:23:35 +08:00
ldm0 5972b95383 fix(fetch): check CORS before intercepted redirect errors 2026-11-16 15:23:35 +08:00
ldm0 c053c08137 fix(fetch): honor redirect modes without a Location header 2026-11-16 15:23:35 +08:00
ldm0 89bf5ae412 fix(input): checkpoint native keyboard callbacks 2026-11-16 14:27:19 +08:00
Donough Liu 76dfcbcaac fix(downloads): stream retained and authorized Blob downloads (#2968)
Retain immutable Blob backing after authorizing the initiating Document storage key and partition. Stream bounded chunks through the existing download artifact lifecycle and report unavailable local Blob URLs as canceled downloads.

Include the Playwright callback regression from #2970, large Blob transport and artifact checks, permission isolation, read-error cleanup and cancellation coverage.

Consolidates #2970.
Fixes #2932.
2026-11-15 23:11:50 +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 d8fe34fe93 fix(xhr): share intercepted request header handling 2026-11-15 15:02:05 +08:00
ldm0 bab1209c75 test(fetch): guard fulfilled redirects with exact interception patterns
Refs #2931
2026-11-15 14:52:03 +08:00
ldm0 7ca5ce7d4b refactor(types): group fetch and page types under moli-types 2026-11-15 14:41:50 +08:00
ldm0 fa87b9515b fix(fetch): preserve stylesheet cache and Network semantics 2026-11-15 05:38:22 +08:00
ldm0 e4b789bf1b fix(fetch): honor stylesheet interception before loading CSS 2026-11-15 05:38:22 +08:00
ldm0 248ac028ca fix(workers): preserve Inspector attachments while scripts load 2026-11-15 05:18:19 +08:00
ldm0 782540c5ca fix(workers): reclaim retired Inspector session lifetimes 2026-11-15 05:18:19 +08:00
ldm0 c0e1d80a68 fix(fetch): keep manual preflight redirects opaque 2026-11-15 02:39:32 +08:00
ldm0 fe5e6b0d27 refactor(download): share preparation for fetched responses 2026-11-15 00:54:14 +08:00
ldm0 1fc3848c6c fix(download): stream child-frame attachments with sandbox checks 2026-11-14 23:13:54 +08:00
ldm0 fed98c8e1d fix(cdp): keep WebSocket handshakes outside Fetch interception
Exclude WebSockets from wildcard and authentication interception classes and
reject explicit WebSocket Fetch filters. Publish their handshake and failure
through dedicated Network.webSocket events without ordinary HTTP requests.
Keep URL blocking and Worker WebSocket diagnostics covered.
2026-11-14 18:50:41 +08:00
ldm0 25825f8898 fix(selection): initialize editing focus at an editable caret
Preserve existing host selections and drop replacement ranges. Find the initial
caret through native DOM/style observations, prune noneditable and inert
subtrees independently of visibility, and respect CSS whitespace collapse.
2026-11-14 18:48:45 +08:00
ldm0 3a07f54762 fix(fetch): handle manual redirects before resolving Location
Return an opaque redirect for manual 3xx responses without parsing Location, including malformed or absent Location. Retain CORS checks and follow/error validation. Cover malformed Location with manual/follow/error and cross-origin controls.
2026-11-14 16:35:43 +08:00
ldm0 7ad484ad17 fix(fetch): advance intercepted redirects from response headers
Stop intercepted Window fetches at each network hop and publish the next Fetch pause from response headers, without waiting for intermediate bodies. Share the head-first hop loader with XHR, retain raw body captures and buffered authentication negotiation, and expire current-request header overrides at redirects. Test a 302 whose body remains held until the next pause.
2026-11-14 16:35:43 +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 71d18c7dd4 fix(input): revalidate touch activation using frozen geometry
Re-hit-test compatibility mouse stages against the existing FrozenLayoutTree, validate live target ownership and connectivity after callbacks, and choose the click target from the press/release common ancestor. Preserve pointer capture and original Touch.target. Do not rebuild layout after author callbacks; cover cold/warm snapshot publication counts and live target removal.
2026-11-14 16:31:16 +08:00
ldm0 2420353647 fix(input): share flat-tree mouse boundary transitions
Use one flat-tree transition helper for mouse and touch compatibility events. Moving from a parent into its descendant must not emit mouseleave on the parent; cover the reverse direction and sibling transitions too.
2026-11-14 16:31:16 +08:00
ldm0 11f7059acc fix(input): capture IME caret before beforeinput callbacks
Capture the IME caret before dispatching beforeinput, while retaining target and Selection revalidation after author callbacks. Cover a callback that changes the Selection before editing.
2026-11-14 16:29:17 +08:00
ldm0 f9aedcd68a fix(input): replace selected text on empty IME commits
Treat an empty Input.insertText commit as a replacement when the initial Selection is non-collapsed. Keep collapsed selections as no-ops and honor beforeinput cancellation for input, textarea and contenteditable.
2026-11-14 16:29:17 +08:00
ldm0 5e7983ef43 fix(cdp): publish child navigation starts before requests and commits
Publish one child navigation start before the first Network request, including Fetch interception and every Page subscriber. Preserve parent Document commit before descendant attachment and remove obsolete retained Network snapshots. Cover intercepted HTTP iframe navigation and Response association.
2026-11-14 15:59:22 +08:00
ldm0 74545e829a fix(network): fail script loads with HTTP error responses 2026-11-14 05:34:10 +08:00