Skip to content

fix(browser): harden stack/redirect filters, DOM objectId checks, and topological OOPIF replay - #374

Merged
Hona merged 1 commit into
devfrom
ws9/pr1c-followup-dev
Nov 21, 2026
Merged

Hona merged 1 commit into
devfrom
ws9/pr1c-followup-dev

Conversation

@Hona

@Hona Hona commented Nov 21, 2026

Copy link
Copy Markdown
Member

Closes all four non-blocking follow-up items from READER-7's read of #350 (notes/review-rd274.md #350: read):

  1. frame_authority.rs: walk stack["parent"] (bounded at 64 hops, fail-closed, matching diagnostics-machine.ts:344-349) in extension_stack and check params["redirectResponse"]["url"] on Network.*.
  2. frame_authority.rs: clear stale root-owned extension_contexts on main-frame commit; return Err(UNAVAILABLE_FRAME) when Post::Hit lacks frameId; validate any objectId passed to DOM.* against self.objects (and session + claimed frame_id).
  3. frame_authority.rs & cdp_ledger.rs & engine.rs: topologically order ReplayWebTargets parents before children; loop flush_outbox until empty (capped at 16 passes) and wake Event::Pump(0) when outbox grows.
  4. frame_authority.rs: queue Runtime.releaseObject into outbox when Post::Resolve fails post_check(fid) at reply time.

Verified: apps/browser-engine --bins 0 warnings, scripts/guardrails.ps1 5/5, live CEF 156 proof (proof/ws9/pr1c-followup-proof.json + 22/22 pr1c-frame-authority-proof.json). stable.json still serves 156.0.26-2 while dev is ENGINE_REVISION = 3 (no bump).

@Hona
Hona merged commit 981f9ef into dev Nov 21, 2026
@Hona
Hona deleted the ws9/pr1c-followup-dev branch November 21, 2026 03:55
Hona added a commit that referenced this pull request Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant