Commit Graph
2984 Commits
Author SHA1 Message Date
ldm0 cdc4423cf3 fix(renderer): unblock Feishin media player initialization 2026-11-07 03:32:34 +08:00
ldm0 e7780afdc4 fix(performance): retain simple EventTarget callback initiators 2026-11-07 03:30:14 +08:00
ldm0 b1f255a8c0 fix(geolocation): retain watch initiators across native updates 2026-11-07 03:30:14 +08:00
ldm0 4ca3135f9b fix(performance): retain traced and observer callback initiators 2026-11-07 03:30:14 +08:00
ldm0 e7f1df4c5a fix(events): keep body messageerror getter attribution neutral 2026-11-07 03:30:14 +08:00
ldm0 8f5708d2df fix(performance): snapshot event handler assignment initiators 2026-11-07 03:30:14 +08:00
ldm0 79cdad5a9a fix(performance): retain DOM listener registration initiators 2026-11-07 03:30:13 +08:00
ldm0 1c26558eb7 fix(performance): retain Window callback registration initiators 2026-11-07 03:30:13 +08:00
ldm0 a45c00a24c fix(performance): avoid retaining author Realms in initiator snapshots 2026-11-07 03:30:13 +08:00
ldm0 5895c8661d fix(performance): retain classic script initiators for XHR timing 2026-11-07 03:30:13 +08:00
ldm0 5a668a0799 feat(performance): expose native Resource Timing initiatorUrl snapshots 2026-11-07 03:30:13 +08:00
ldm0 3cb833b8f4 fix(images): skip duplicate timing entries for decoded image reuse 2026-11-07 03:28:56 +08:00
ldm0 039a79c58b test(bidi): cover one-shot prompt events and recovery 2026-11-07 01:22:11 +08:00
ldm0 88c8f10759 test(cdp): cover dialogs shared by attached Page sessions 2026-11-07 01:22:11 +08:00
ldm0 48fa7e9aef fix(bidi): ignore typed CDP dialog opening projections 2026-11-07 01:22:11 +08:00
ldm0 ec0f922dcf refactor(protocol): simplify dialog installation and command handling 2026-11-07 01:22:11 +08:00
ldm0 5b7b330fba test(dialogs): discover browser endpoints after rebase 2026-11-07 01:22:11 +08:00
ldm0 0551e4afb7 fix(renderer): use shared dialog waiting mode for every Page
A VM created while dialog waiting was enabled cached that value locally. The
cached true value survived disabling or detaching the final Page observer,
so later dialogs could still wait after the shared context flag was false.

Read the BrowserContext shared switch for every dialog. Remove the VM-local
Boolean, its constructor snapshot, the ScriptVm/JsContextHost setters, and the
obsolete Page setter and renderer command. Page domain commands now rely on
the existing shared subscription aggregation.

Cover enabled-at-construction VMs and interleaved disable/detach across two
Pages and different sessions. Verify that confirm returns without a modal wait
while a native handler remains available to handle the prompt. Keep standalone
headless dialog fallback coverage through the shared switch.
2026-11-07 01:22:11 +08:00
ldm0 7f6de2ae23 refactor(protocol): simplify unhandled dialog delivery
Complete a handlerless renderer prefix directly and emit its native opening
and closing facts without inserting it into the Page queue. Existing queued
dialogs remain owned by their subscription cleanup paths.

Use Vec::extract_if for ordered queue removal and clone the closed-event
payload for each CDP projection. Retain the late-prefix regression and verify
that rejecting a new prefix leaves an older queued dialog handleable.
2026-11-07 01:22:11 +08:00
ldm0 8d2b995e5a fix(protocol): own native dialog handlers in frontend adapters
Native discovery and rejected commands could leave a dialog handler marked
available indefinitely. Register Classic and BiDi handlers explicitly at
session setup or attachment, and release them on session end, disconnect,
and runtime shutdown before waiting for renderer cleanup.

Keep adapter registrations independent and distinguish handler availability
from modal waiting. Apply waiting policy to existing and newly created browser
contexts. Releasing the final native handler settles dialogs without an
original Page observer.

Centralize Page subscription release while preserving the distinct disable
and detach cancellation policies. Cover command purity, independent adapter
lifetimes, context initialization, abandoned completions, and Classic dialog
handling after a real BiDi disconnect or session.end.
2026-11-07 01:22:11 +08:00
ldm0 1cb1dbb8cd fix(protocol): preserve native dialogs when Page is disabled
Use the same native handler availability check as session disposal before
cancelling dialogs for a disabled Page subscription. Disabling Page still
revokes that session's callback without changing the native frontend's choice
of modal waiting.

Cover Primary and Attached sessions with Classic and BiDi native handlers,
including callback revocation across Page.disable/Page.enable and accepting
the retained prompt through native automation.
2026-11-07 01:22:11 +08:00
ldm0 6fec34d95b fix(protocol): handle dialog cleanup without an active Page
The active target can be removed while background Page sessions still need
detach cleanup. Check the optional active target when recomputing the shared
dialog handler mode, and continue counting background subscribers. This avoids
a protocol sequence panic during Puppeteer reconnect and target cleanup.

Cover disabling background Page sessions without an active target: retain the
handler while a peer remains enabled, then clear it after the final subscriber.
2026-11-07 01:22:11 +08:00
ldm0 802ee1f298 fix(protocol): settle orphaned dialogs and deduplicate native events
Dismiss queued dialogs when their final original Page subscriber detaches,
before waiting for session cleanup. Late Page subscribers cannot inherit an
existing dialog. Preserve dialogs that still have a native automation handler
or another original subscriber, without introducing renderer waits on detach.

Cancel every dialog observed by a disabling Page subscription, including
queued entries behind an unobserved head. Also settle renderer dialog prefixes
that arrive after the last handler has left.

Emit one native opening/closing fact per physical dialog and project CDP wire
events independently for each subscribed session. Track native handler
availability separately from renderer modal waiting so Classic and BiDi retain
their existing behavior.

Cover detach and disconnect over independent WebSockets, queued cancellation,
late subscriptions, native handler preservation, and event fanout counts.
2026-11-07 01:22:11 +08:00
ldm0 b5d120f103 fix(protocol): keep shared dialogs independent of DevTools sessions
Own pending dialogs and prompt text on PageTargetHost so disposing Primary
cannot lose a renderer completion. Settle dialogs when their document is
replaced or their target closes or drops.

Capture Page subscription generations when a dialog opens. Only those CDP
observers may handle or cancel it, and Page.disable consistently dismisses
the shared dialog from either session. Keep native automation independent
of Page.enable and send CDP dialog events only to enabled Page sessions.

Cover Primary disposal, disabled and late-enabled observers, Page.disable,
target drop, and dialog handling over independent WebSocket connections.
Synchronize the existing multi-session regression on specific events and
responses instead of elapsed time.
2026-11-07 01:22:11 +08:00
BibekPathak 2bd9ddb08d report JavaScript dialogs to every attached Page session 2026-11-07 01:22:11 +08:00
ldm0 8582026d7b test(webidl): cover exception strings and conversion order across realms
Verify exact UTF-16 units, constructor defaults, primitive conversions,
derived prototypes, getter order and exact thrown values in Window,
child and Worker realms, including shared WebSocket CloseInfo conversion.
2026-11-07 00:49:16 +08:00
ldm0 e62be176d6 fix(websocket): truncate fractional CloseInfo codes before validation
Preserve the protocol helper's truncating numeric conversion and validate
the resulting close code without changing the shared WebIDL Clamp converter.
Cover native bounds and the observable WebSocketError constructor result.
2026-11-07 00:49:16 +08:00
ldm0 92dd1d08bc fix(benchmark): await document load before crash readiness 2026-11-06 23:10:49 +08:00
ldm0 ffde671f1f fix(benchmark): serve upstream EventSource message fixture
Implement message.py response MIME, byte queries, first-value semantics,
newline handling and delayed headers instead of serving Python source.
Allow exact references to this implemented resource during discovery.

Cover GET/HEAD bodies and headers, binary query values, delay parameters
and handler reference selection. Preserve upstream WPT files and assertions.
2026-11-06 22:40:07 +08:00
ldm0 2353bc8312 test(wpt): refresh full release case lists
Run all 14,064 WPT cases against the fixed release binary with 50 CDP
workers, without case filters or automatic case retries.

Record 10,341 passes, 3,461 failures, 250 timeouts, seven errors, four
harness stalls and one crash. Preserve these full-run observations even
when separate paired probes pass; do not replace failures with retries.
v1.1.22
2026-11-06 21:13:35 +08:00
ldm0 823a7e2d24 fix(v8): partition generated-code caches by referrer metadata
Pinned V8 15.2 can reuse Function and indirect-eval compilation entries
from a script with a different nonce or base URL. This rejects valid
dynamic imports once module CSP admission checks the inherited metadata.

Append a precomputed referrer-specific trailing comment after the existing
CSP and Trusted Types checks. Keep untracked cache keys separate, preserve
UTF-16 and Function source text, and retain creator metadata when generated
functions outlive their compiling script.

Cover dynamic Function variants, direct and indirect eval, cross-realm
reuse, retained functions, lexical scope and source preservation.
2026-11-06 21:13:35 +08:00
ldm0 eda3762c1b fix(css): share parser import graphs with stylesheet owners 2026-11-06 20:26:18 +08:00
ldm0 668fd80b64 test(xhr): cover bodyless upload completion and reentry 2026-11-06 13:59:02 +08:00
ldm0 374ed832f7 fix(events): select Window onerror arguments and cancellation by native kind 2026-11-06 13:19:52 +08:00
ldm0 3e04b24a15 fix(renderer): derive streaming restore admission from scheduler readiness 2026-11-06 12:55:41 +08:00
Mert Kaya 1da94d696a fix(window): honor final duplicate feature values 2026-11-06 11:58:48 +08:00
ldm0 7ae0cdc3b1 fix(navigation): retain live pages when replacement observers cancel
A newer navigation can cancel a replacement response while its Document is
already installed and still completing its requested lifecycle stage.
Detach that observer and continue on the existing Page, preserving its
navigation reply policy and original close owner.

Cover cancellation after the native Document is installed but before
protocol adoption, followed by beforeunload for the successor navigation.
2026-11-06 11:53:14 +08:00
ldm0 d6152e6243 fix(timers): defer idle callbacks while ordinary timers are ready
Check ordinary ready timers before admitting an unexpired idle callback. An earlier idle transport deadline must not overtake later ready work in the same heap, including queued popup javascript navigation.

Keep expired idle callbacks runnable. Cover the real owner loop with an HTTP completion witness and six function, source, child-window, expired, cancelled, and future timer scenarios.
2026-11-06 11:52:33 +08:00
ldm0 20b724ba0a fix(forms): track image form owners 2026-11-06 11:45:42 +08:00
ldm0 8f4e824b3a fix(forms): reset parser-associated form owners 2026-11-06 11:45:42 +08:00
ldm0 b73dccb46d refactor(events): reuse native simple-event construction for detached targets 2026-11-06 11:31:55 +08:00
ldm0 f468ccbcca fix(dom): initialize Document location accessors in their realm 2026-11-06 11:31:07 +08:00
ldm0 64ea17ee12 fix(dom): return null for inactive Document locations 2026-11-06 11:30:51 +08:00
ldm0 9bd3f6f0a3 refactor(events): reuse legacy UI state initialization in initMouseEvent 2026-11-06 10:49:12 +08:00
ldm0 db08044834 fix(service-worker): reject new requests from closed windows
Window.close marks a browsing context closed before its queued document
cleanup. Do not admit ServiceWorker requests during that gap, where
cleanup can retire their resolvers before a surviving caller sees them.

Cover lightweight popups and renderer-owned auxiliary Pages, including
reentrant URL conversion. Preserve requests made during beforeunload,
document owner retirement, and stale completion authorization.
2026-11-06 03:17:03 +08:00
ldm0 d655fffcf5 chore(release): update version to 1.1.22 2026-11-06 02:56:04 +08:00
ldm0 5c4cbad355 fix(wpt): preserve authored timer delays for long tests 2026-11-06 02:26:17 +08:00
ldm0 e5a0f40e85 refactor(fetch): separate request admission from mode validation 2026-11-06 02:23:36 +08:00
ldm0 19a78b14ca refactor(workers): collect module CSP violations in one context 2026-11-06 02:23:36 +08:00
ldm0 a3d76e11a1 fix(modules): unify CSP admission and honor preload integrity 2026-11-06 02:23:36 +08:00