Commit Graph
3488 Commits
Author SHA1 Message Date
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 2c0c179a3a fix(aria): include detached roots in IDREF resolution
Search the detached root itself before its descendants when resolving ARIA IDREFs. Cover a detached root label, self-reference, duplicate-ID tree order and shadow boundaries.
2026-11-14 15:57:18 +08:00
ldm0 fd27bd9425 fix(selection): notify Document listeners across isolated worlds
Dispatch selectionchange through the native Document listener registry, so Selection changes in an isolated world notify listeners registered in the main world. Remove the wrapper-local listener marker and cover cross-world notification and teardown.
2026-11-14 15:55:00 +08:00
ldm0 ded39252ee test(dom): cover query result identity across realms
Source-commit: f6f1fd3417
2026-11-14 15:53:02 +08:00
ldm0 74545e829a fix(network): fail script loads with HTTP error responses 2026-11-14 05:34:10 +08:00
ldm0 b281530ab2 fix(fetch): publish parser script terminals before execution gates 2026-11-14 05:34:10 +08:00
ldm0 dae7ca835f fix(fetch): preserve intercepted parser script Network ids 2026-11-14 05:34:10 +08:00
ldm0 591808e89b fix(focus): resolve Document focus through native ancestors
Source-commit: bd92a1c093
2026-11-14 04:27:05 +08:00
ldm0 86d647f34b test(page): await the current child loader lifecycle
The unchanged baseline history-back test fails because a previous navigation can stop after the next loader commits. Drive progress until the exact current frame/loader networkIdle event before checking the existing complete lifecycle sequence. Keep all lifecycle assertions and wait budgets unchanged.
2026-11-14 04:02:23 +08:00
ldm0 3f5d90218b test(fetch): cover unrelated network rules during CDP auth
Drive real native XHR authentication under a CDP Image filter with an unrelated request or auth intercept, in both registration orders. Verify challenges before and after removing the unrelated rule, no authentication after disabling CDP auth, exact response bodies and one Network terminal.
2026-11-14 04:02:23 +08:00
ldm0 8d12eabde7 fix(fetch): preserve independent CDP authentication handlers
Combine CDP Fetch sessions and Network/BiDi auth rules with OR for both URL matching and renderer eligibility. Reuse the CDP predicate for owner selection and remove the redundant aggregate bit from interception snapshots. Replace the test that preserved the legacy suppression behavior with source-union, disable and scoped-URL assertions.
2026-11-14 04:02:23 +08:00
ldm0 f857b6651e refactor(fetch): derive interception admission from shared rules 2026-11-14 03:29:21 +08:00
ldm0 93ddff2da8 docs(smoke): document interception ownership and capture contracts
Describe exact class routing, live target eligibility, Worker event scope, and buffered capture regressions.
2026-11-14 02:56:32 +08:00
ldm0 1c15a49635 fix(xhr): retain initial request headers across authentication
The unchanged Worker-auth CDP smoke also fails on clean baseline because ExtraInfo uses the credentialed retry snapshot. Retain the first on-wire request headers within a logical hop; reset them on redirect.
2026-11-14 02:56:32 +08:00
ldm0 0123315e4b refactor(fetch): name drained interception cleanup requests
Replace the six-element tuple and repeated aliases with named fields in DrainedFetchRequests. Keep the existing cleanup ownership and order.
2026-11-14 02:56:32 +08:00
ldm0 d2781ac2f1 perf(xhr): reuse buffered raw response captures
Carry the original capture alongside the JS-facing Response so Network does not copy the body back out. Verify allocation identity, disk lifetime, raw bytes and accounting for memory and disk backing.
2026-11-14 02:56:32 +08:00
ldm0 d01de2e55a refactor(fetch): share response header redirect advancement
Use one response-header transition for manual Fetch and controlled XHR, including CORS and redirect-mode precedence. Navigation reuses only the pure redirect-record constructor.
2026-11-14 02:56:32 +08:00
ldm0 5ab90160df refactor(network): share live target interception eligibility
Remove Page and Worker fallback values and the Worker propagation message. Share the existing target policy through Document and Worker views, and rebind reused initial Windows when a new Document authority is installed.
2026-11-14 02:56:32 +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 0e3dae13cd refactor(inspector): own helper leases and remove legacy tracking 2026-11-14 02:13:16 +08:00
ldm0 426c192d5e perf(cdp): stop mirroring Inspector remote objects 2026-11-14 02:13:16 +08:00
ldm0 b1466068f4 refactor(inspector): release references through native session teardown 2026-11-14 02:13:16 +08:00
ldm0 b64afda8bb refactor(bidi): track exported handles independently of CDP 2026-11-14 02:13:16 +08:00
ldm0 7bdd79a5e9 test(inspector): define native session object lifecycle contracts 2026-11-14 02:13:16 +08:00
ldm0 75c97dde70 fix(storage): use first-party keys for iframe-created blank popups
Source-commit: 22f81b8293
2026-11-14 01:41:08 +08:00
ldm0 7a24dcca00 fix(fetch): preserve credentialed redirects and aborted timing 2026-11-14 01:35:36 +08:00
ldm0 f1820fd22f fix(fetch): follow redirects fulfilled during Window request interception 2026-11-14 01:35:36 +08:00
ldm0 6966cf8f0a test(cdp): cover legacy text input and renderer lifetime 2026-11-14 01:33:40 +08:00
ldm0 dad72def5b fix(input): dispatch trusted textInput before native typing edits 2026-11-14 01:33:40 +08:00
ldm0 d64d0e2a20 fix(cdp): preserve nested iframe identities and commit order 2026-11-14 01:31:40 +08:00
ldm0 32acefc5ec fix(selection): share document selection across isolated worlds 2026-11-14 01:19:36 +08:00
ldm0 fc15d5748d fix(input): activate completed touch taps
Recognize eligible touch taps and dispatch trusted compatibility mouse events
and PointerEvent clicks through existing activation defaults. Share contact
lifecycle state across touch IDs and preserve primary identity and capture
release behavior.

Add protocol, renderer, and repeated Playwright touchscreen regressions for #2858.
2026-11-14 01:17:44 +08:00
ldm0 95dbc88a4f refactor(cdp): keep event validation at build and test time 2026-11-14 00:44:58 +08:00
ldm0 6650c81e73 fix(cdp): finish event migration and report rejected batches 2026-11-14 00:44:58 +08:00
ldm0 59c47a2f93 fix(cdp): enforce advertised event names at frontend output 2026-11-14 00:44:58 +08:00
ldm0 f4d868c244 refactor(cdp): require typed local event construction 2026-11-14 00:44:58 +08:00
ldm0 046811f7b9 refactor(cdp): share local event names with schema generation 2026-11-14 00:44:58 +08:00
ldm0 e75131a947 docs(smoke): clarify modifier shortcut and text input behavior 2026-11-13 23:47:19 +08:00
ldm0 ffa5a9b057 test(cdp): cover modifier shortcut and character phase parity 2026-11-13 23:47:19 +08:00
ldm0 17fa447b66 feat(service-worker): implement native FetchEvent construction
Source-commit: d89413df5e
2026-11-13 22:49:06 +08:00
ldm0 00cf929e2c fix(service-worker): share native ExtendableEvent waitUntil handling
Source-commit: a86a76838a
2026-11-13 22:49:06 +08:00