Repository navigation
feat(browser-engine): add verified MV3 extension host over private CDP pipe - #274
Merged
Merged
Conversation
This was referenced Nov 20, 2026
Merged
Hona
added a commit
that referenced
this pull request
Nov 20, 2026
…osed, and drop on last tab close (#288) Hardens `apps/browser-engine/src/context.rs` as the single shared `CefRequestContext` creator across WS-1, WS-9 (`#274`), PREVIEWS (`#281`), and BROWSER-TOOLS (resolving `notes/review-rd274.md` Finding 5): - **Partitioned scopes & canonical keys (`ContextKind` / `ContextKey`):** - `Default` -> global persistent profile (`OPENCODE_BROWSER_PROFILE/Default`). - `Preview { workspace, grant }` -> `ContextKey::Preview { workspace, grant }` (distinct per workspace and grant; never shares across workspaces or with artifacts). - `Artifact { artifact_id }` -> `ContextKey::Artifact(artifact_id)` (separate namespace from workspace previews). - `Private` -> `ContextKey::Private(tab_id)` (unique per private tab; never shared). - `RemoteServer { server_id, proxy }` -> `ContextKey::RemoteServer(server_id)` keyed by canonical `ServerKey::as_str()` identity (never display name; keeps `#[serde(alias = "partition")]` for wire compatibility). - **Fail closed on every path:** Empty keys return `browser.context.invalid`; non-loopback proxies return `browser.proxy.invalid`; `cef::request_context_create_context` or `browser_host_create_browser_sync` failure returns `browser.context.unavailable` with an explicit pre-create guard forbidding `!context.is_default() && req_ctx.is_none()`. On desktop, `App::default_browser_context()` always returns `RemoteServer` on non-sidecar servers (never silently falling back to `Default` when an older engine lacks `Ready.partitions`), and pop-ups from isolated contexts never inherit into `Default`. - **Ref-counted teardown & zero disk writes:** Every non-`Default` context runs strictly in memory (`cache_path: ""`, `persist_session_cookies: 0`), disables WebRTC non-proxied UDP/multiple routes, DoH, QUIC, and DNS prefetching, strips `file_roots`, and drops immediately when its last tab closes (`ContextPool::release_tab`, closing connections and wiping cookies/storage/caches/service workers; `RemoteServer` proxy configs remain in `remote_proxies` until `DropContext`). - **Shared hooks for PREVIEWS (`#281`) & WS-9 (`#274`):** Adds `ContextHooks` (`resource_filter`, `exclude_default_cookie_schemes`, `on_created`) on `ContextPool::resolve_with_hooks` and `ContextKind::is_isolated()`, plus preserves `agent_driven` across Linux dmabuf `ReopenTabs`.
…d boundary, isolation, and DoS limits per security review
# Conflicts: # apps/browser-engine/src/context.rs # apps/browser-engine/src/engine.rs # apps/browser-engine/src/wire.rs
Hona
added a commit
that referenced
this pull request
Nov 20, 2026
…18..UP-122 (#295) - Fold verified fleet PRs #278, #285, #287, #288, #289, #290, #291, and #293 (Rune dc8f7f72: #1301, #1302 focus rescue verified Send+Enter -> effort) into docs/upstream-sync/ledger.{json,md} - Close UP-062 packaged-default regression (#278), UP-095-UI / UP-100 / UP-106 / UP-109 / UP-117 (#285, #289), and PRE-08 (#287); reassign UP-115, UP-116, UP-075 to BROWSER-UI - Add separate Reviewed column for browser rows tracking retrospective security reviews on merged PRs (#245, #268, #272, #277, #288, #275, #287, #285, #289) and pre-merge holds (#274, #280, #281, #283, #286, #292, #294, and BROWSER-TOOLS PR 3+) - Audit upstream anomalyco/opencode bfee96a859..2002222d13 (+6 commits: 1 skipped, 5 added: UP-118..UP-122) and refine radar routing
|
PR test build retired — merged into |
…ForPath, close all 4 Fetch gaps, guard pre-existing extension iframes, and harden manifest/pipe/action limits
…ion_flags, and add narrow extension sub-frame guard
# Conflicts: # apps/browser-engine/src/context.rs
…ion guard and move sub-frame masking to pr1b
# Conflicts: # apps/browser-engine/src/context.rs # apps/browser-engine/src/downloads.rs # apps/browser-engine/src/engine.rs # apps/browser-engine/src/handlers.rs # apps/browser-engine/src/wire.rs
…faces, harden pending clear, and suppress engine Page.* events
# Conflicts: # apps/browser-engine/src/downloads.rs # apps/browser-engine/src/engine.rs # apps/browser-engine/src/handlers.rs # apps/browser-engine/src/main.rs
Hona
added a commit
that referenced
this pull request
Nov 20, 2026
…ck-pressure and unconditional file:// ban
Hona
added a commit
that referenced
this pull request
Nov 20, 2026
- Fold security-confirmed merged PRs #292 (6d7a6ed, WS-1 mandatory RemoteServer proxy), #294 (ae3e910, BROWSER-UI file-link/click-to-run fix with known symlink/junction root limitation), and #274 (5da6474, WS-9 engine MV3 extension host, inert without --extension flags) - Update browser Reviewed column: #301 in rework (#287 eager-attach time_updated regression still live on dev), #296/#298/#302/#303/#305/#306 in rework, #307 open for pre-merge security review - Audit upstream anomalyco/opencode fe8def6854..4122af0206 (+2 commits: 1 skipped #65255 core/codemode, 1 added UP-135 #65215 -> WS-8)
Hona
added a commit
that referenced
this pull request
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds MV3 Chrome browser extension hosting to
apps/browser-engine(CEF 156 OSR) over a private, non-inheritable, in-process anonymous CDP pipe, integrated with WS-1's#277/#288partitionedContextPooland hardened against every finding in Round 1 and Round 2 ofreview-rd274.md(WS-9 PR 1 of 5; independent security review before merge).Waits on newly published signed engine (
opencode-browser-engine) to reach shipped users.Round-5 Hardening Pass (
review-rd274.md"Fifth read at b6f0e1c", ~35 lines across 5 files)HostMsg::Findgated (engine.rs:938): RefusesHostMsg::Findwhen!self.contexts.is_tab_ready(tab_id) || extensions::tab_is_extension_surface(t)(callst.host.stop_finding(1)and returns early), closing theBrowserTab:Find/FindResulttext oracle across extension OOPIFs and closed ShadowRoots. (Gated unconditionally in the engine for#274with zero wire change; desktop caller scoping forBrowserTab:Findbelongs in PR 4 alongside the built-in browser chrome gates, and user find-bar support on web pages with extension sub-frames moves withws9/pr1b-ext-subframe-masking.)CdpCallreply re-check (handlers.rs::TabCdpObserver::on_dev_tools_method_result+engine/extensions.rs::browser_has_extension_surface): Re-checksbrowser_has_extension_surface(browser.as_deref(), self.is_popup, &self.snap, &self.prompts)before forwardingCdpPending::Raw(req_id), converting any reply where an extension frame appeared mid-flight (e.g., duringPage.captureScreenshotor an awaitedRuntime.evaluate) into anok: falserefusal.handlers.rs):on_load_endclearspending_ext_subframesonly whenf.url()is an extension scheme;on_load_errorclears only whenfailed_urlis an extension scheme; removedclear_all_ext_frame_tracking()fromon_before_browse(clears only on main-frame commit inon_load_start/Page.frameNavigatedandreset_on_crash).Page.*events fromEngineMsg::CdpEvent(handlers.rs::on_dev_tools_event): After updatingself.promptsfromPage.frameNavigated/navigatedWithinDocument/frameDetached, drops allPage.*events beforeout_txsoPage.frameRequestedNavigation,Page.windowOpen, andPage.frameDetachednever leak extension URLs, tokens, or frame IDs.downloads.rs):on_before_downloadreturns1on policy cancellations (matchingis_preview/is_popup), andon_download_updatedchecksself.is_preview || self.is_popup.proof/ws9/pr1-reader7-r5-proof.json):Findoracle):plainTabFindMatched: true,extTabFindPositiveMatches: 0,extTabFindRefused: true.Runtime.evaluate+Page.captureScreenshot):awaitedEvalRefused: true,midFlightScreenshotRefused: true.ERR_ABORTEDon superseded/slow-web+ abortedHTTP 204main-frame navigation):evalRefused: true,screenshotRefused: true.EngineMsg::CdpEventstream):pageEventsForwarded: 0,cdpEventHasExtUrlOrToken: false,clean: true.Round-4 Ruling & Simplification (
review-rd274.md"Fourth read at e668a99")Per the orchestrator & READER-7 ruling, all sub-frame masking / hit-testing / tree-stripping code has been moved off
#274onto branchws9/pr1b-ext-subframe-masking(which remains in the hard shipping gate before extensions are enabled for users).#274enforces the small, race-free, fail-closed whole-tab rule:engine.rs,handlers.rs,prompts.rs):HostMsg::CdpCall,HostMsg::SetInspect, andHostMsg::HighlightNodeon the entire tab whenever ANY frame (main OR sub-frame) is, or is about to become, an extension frame — checked at the exact moment each call is dispatched, on bothagent_driven == truetabs AND unflagged 3P pluginDevtoolsAsynctabs.is_popup, snapshot URL, pending top URL, and live CEF main-frame URL;browser.frame_identifiers()+frame_by_identifier()(catching cross-processchrome-extension://OOPIFs, Bitwarden closed-ShadowRoot overlays, and nested cross-origin iframes);frameIds (devtools_frame_token) observed inTabCdpObserver::on_dev_tools_eventviaPage.frameNavigated/Page.navigatedWithinDocument/Page.frameDetached(withPage.enablesent on non-isolated tabs when extensions are active, and suppressing forwarding of extension-originCdpEvents);on_before_browse,on_load_start, and sub-frame-navigation-onlyon_resource_redirect(is_navigation && !is_main— never ordinary<script>/<img>subresource redirects inside web iframes!), pruned strictly by commit / error / main-frame navigation / crash / destroyed pre-swapRenderFrameHostwith zero fail-open TTL.extensions/frame_guard.rsand all masking/hit-testing/tree-stripping plumbing from#274(preserved on branchws9/pr1b-ext-subframe-masking).extensions/cdp.rs,context.rs):cdp.rs: On post-loadverify_extension_file_access_disabledfailure (or load ID mismatch), also removesexpected_idfromself.verified_startupand immediately detaches any activeself.sessionsforexpected_id/loaded_idduring the asyncExtensions.uninstallwindow.context.rs:verify_extension_file_access_disabledchecksext_dict.get_type(...)(VTYPE_INTforcreation_flagsandVTYPE_BOOLfornewAllowFileAccess) before reading.int()/.bool().probe-reader7-r2-after.ts:finding1_fileBlocking.allBlocked: true, static WAR overlay & Bitwarden closed-ShadowRootuse_dynamic_urliframe both whole-tab refused BEFORE and AFTERSetAgentDriven(true), plain tab1+1 == 2, padded 257-perm manifest refused, 100×action.*flood throttled to 30.<iframe>with DNR-redirected<script>tochrome-extension://.../noop.jsdoes NOT falsely lock out the tab (subresourceScriptRedirectInWebIframeNotFalsePositive: true); tab with real extension iframe is whole-tab refused (extIframeWholeTabRefused: true) and recovers cleanly on navigating to a clean page (recoveredAfterNavigatingToCleanPage: true).probe-reader7-after.ts&pr1-async-proof.ts(uBlock Origin Lite + Dark Reader + Bitwarden): 0-extReady146.5 ms; 3-extReady164.4 ms, first tab painted311.5 ms, DNR ready870.8 ms, all 3 loaded1,656 ms,page_attach_to_resume_us: 29 µs,0registry errors,0leftover stubs,VTYPE_INT/VTYPE_BOOLpost-load check green on startup & reload.scripts/guardrails.ps1: 5/5 passed (engine.rs1,487 lines, 0 files > 1,500);clippy -D warnings: 0 warnings; zero test files added.Round-3 Hardening Pass Addressing
review-rd274.md("Third read at 5c11cdc", Finding 1 — Confirmed Closed)grant_ext_id_to_user_tabs, added post-loadcreation_flagsverification, single-canonicalization path hashing, and fail-closedFetch.enableordering (context.rs,engine/extensions.rs,extensions/{mod,cdp}.rs):grant_ext_id_to_user_tabs; ordinary user web tabs never receive loaded extension IDs inallowed_ext_ids.canonical_extension_load_pathruns once per load (on_startup_verified,reload_extension,uninstall_inert_stub, anduninstall_extension's!is_unpackedbranch);generate_id_for_normalized_path(&path_str)hashes that exact string; post-loadverify_extension_file_access_disabled(loaded_id)readsextensions.settings.<loaded_id>.creation_flags(VTYPE_INT, bit0x4 == 0) andnewAllowFileAccess(VTYPE_BOOL == false), uninstalling, clearingverified_startup, and detaching active sessions on mismatch.auto_attach_cmdordered strictly beforefetch_enable_cmd;handle_cdp_replyrefuses resuming onFetch.enableerror.is_symlink()calls inextensions/integrity.rswithis_reparse_or_symlink().Round-2 Hardening Pass Addressing
review-rd274.md("Second read at a00d65a")ALLOW_FILE_ACCESSrevocation + closed all 4Fetch.enablebypasses (context.rs,extensions/{cdp,mod,manifest,rpc}.rs,engine.rs):context.rs::generate_id_for_path+canonical_extension_load_path+disallow_extension_file_access): Before everyExtensions.loadUnpackedcall (startup, reload, and inert-stub upgrade), setsextensions.settings.<id>.newAllowFileAccess = falseunder both Chromium's path-derived ID (crx_file::id_util::GenerateIdForPathon the\\?\-stripped canonical UTF-16LE Windows / UTF-8 POSIX path passed toloadUnpacked) and the key-derivedext_id. Fails closed (uninstalls inert stub and emitsExtensionIntegrityFailed, never callingExtensions.loadUnpacked) ifdisallow_extension_file_accessreturnsfalse.Fetch.enableCOMPLETELY SWITCHED OFF (proof/ws9/pr1-reader7-5arm-experiment.json):none(control: no pref, noFetch.enable): SW,blob:worker, line-1 race worker, nested worker2 ALL readHOST_SECRET_R7_5ARM, AND<all_urls>content script injected into afile://tab.fetch_only(pre-fixa00d65a0Fetch.enable, no pref): SW (async race),blob:worker, line-1 race worker, and nested worker2 ALL bypassedFetch.enableand readHOST_SECRET_R7_5ARM(confirming READER-7's exact analysis).pref_key_only(key-derivedext_idonly,Fetch.enableOFF): fetches blocked, but<all_urls>content script STILL injected into thefile://tab becauseUnpackedInstaller::GetFlags()checksGenerateIdForPath.pref_path_onlyANDpref_only(GenerateIdForPath+ext_id,Fetch.enableCOMPLETELY OFF):set_preference("extensions.settings")returnedok=true, ALL 6file://fetch contexts failed on Chromium's own refusal (BLK), AND zero content script injected into thefile://tab.Fetch.enable+DefaultRequestContextHandler) hardened closing all 4 gaps:blob:worker origins unwrapped (manifest.rs::extension_id_from_target_url):blob:chrome-extension://<id>/<uuid>workers matchSessionKind::FileGuardOnlyand receiveFetch.enable(never detached unguarded).cdp.rs::auto_attach_cmd): SendsTarget.setAutoAttach({ autoAttach: true, waitForDebuggerOnStart: true, flatten: true })on everyServiceWorker,FileGuardOnly,ExtensionPage, andPopupPagesession so nested dedicated workers (worker1 -> worker2), shared workers, and sub-iframes pause and attach before executing line 1.Fetch.enablebarrier (pending_fetch_resume): Never pipelinesRuntime.runIfWaitingForDebuggerin the same batch asFetch.enable; waits for Chromium's CDP reply toFetch.enable(UpdateSubresourceLoaderFactoriescomplete) inhandle_cdp_replybefore sendingRuntime.runIfWaitingForDebugger. Addedfilesystem:file://*alongsidefile://*andblob:file://*(removed redundantFILE://*).rpc.rs::rpc_tabs_update+engine.rs::open_tab):tabs.updaterefuses navigating any non-extension web tab tochrome-extension://(extensions usechrome.tabs.create), and regular web tabs keepallowed_ext_idsempty so they can never upgrade in-place into an unattached extension main frame (WAR sub-frames on user web tabs remain unaffected).engine.rs::tab_is_extension_surface):CefBrowserviat.browser.frame_identifiers()+t.browser.frame_by_identifier()(catching cross-originchrome-extension://OOPIFs, includinguse_dynamic_urlUUID overlays like Bitwarden'soverlay/menu-button.html/overlay/menu-list.html).HostMsg::CdpCall(Page.captureScreenshot,Page.getFrameTree,Accessibility.getFullAXTree,Input.dispatchMouseEvent/dispatchKeyEvent,Runtime.evaluate, etc.),SetInspect, andHighlightNodefails closed immediately (even if a 3P plugin never sentSetAgentDriven(true)).pending_top_urlbeforeframe.load_urlinHostMsg::NavigateandExtEffect::NavigateTab.extensions/{manifest,integrity}.rs): Removed.take(256)truncation;ExtensionManifest::from_verified_bytesandread_mv3_stub_fieldsnow usechecked_string_array(identical fail-closed bounds tocrates/browser-extensions: refuses manifests with> 256entries, non-strings, empty strings,> 256B items, or control/bidi chars). (Note:apps/browser-engineis a standalone Cargo workspace member with its ownCargo.toml/Cargo.lockso the signed CEF binary stays decoupled from desktop workspace crates, while judging the exactmanifest.jsonbytes hashed byextension_tree_digest_and_manifestunder the same fail-closed contract.)action.*methods rate-limited (extensions/rpc.rs): Addedallow_action_updategating tosetPopup,setBadgeBackgroundColor,setBadgeTextColor,enable, anddisable.extensions/{pipe,mod}.rs):drain_inboundhandlesTryRecvError::Disconnectedexplicitly (guaranteedon_pipe_closed()even when the 256-slot inbound queue is full). Outbound pipe now uses prioritycontrol(512) vsrpc(512) queues drained control-first byengine-ext-cdp-txso RPC floods can never dropFetch.failRequest,Debugger.resume,Target.detachFromTarget, orRuntime.runIfWaitingForDebugger.Inspector.targetReloadedAfterCrashbranched bysess.kind(extensions/cdp.rs):FileGuardOnlytargets receive ONLYFetch.enable+Target.setAutoAttach(neverRuntime.addBindingorDebugger.enable).downloads.rs::on_before_download: Re-checksis_popup,extension_origin(&item.url()),extension_origin(&item.original_url()),subresource_allowed, andis_http_with_credentials.extensions/integrity.rs): Added WindowsFILE_FLAG_OPEN_REPARSE_POINT+FILE_ATTRIBUTE_REPARSE_POINThandle verification inopen_regular_no_follow; comma fallback usesLOCALAPPDATAon Windows (never profile-overwrittenTMP) and atomicDirBuilder::mode(0o700)with a non-predictable nonce on Unix (failing closed if unavailable).host_covers(extensions/manifest.rs):https://*:8443/*now checks port equality rather than matching all ports.ReopenTabs(engine.rs): Callsext.on_tab_closed(tab_id)beforeopen_tabto avoid duplicateExtTabentries.Driven Live CEF 156 Proofs
1. Root-Cause
ALLOW_FILE_ACCESS& All 4Fetch.enableBypasses (proof/ws9/pr1-reader7-5arm-experiment.json&proof/ws9/pr1-reader7-r2-after.json)opencode-browser-engine.exe):none(control: no pref, noFetch.enable): SW,blob:worker, line-1 race worker, and nested worker2 ALL readHOST_SECRET_R7_5ARM, AND<all_urls>content script injected into afile://tab.fetch_only(pre-fixa00d65a0Fetch.enableonly, no pref): SW (async race),blob:worker, line-1 race worker, and nested worker2 ALL leakedHOST_SECRET_R7_5ARM, AND content script injected into thefile://tab.pref_key_only(key-derivedext_idonly,Fetch.enableOFF): fetches blocked, but content script STILL injected into thefile://tab (UnpackedInstaller::GetFlags()checksGenerateIdForPath).pref_path_onlyANDpref_only(GenerateIdForPath+ext_id,Fetch.enableCOMPLETELY OFF):set_preference("extensions.settings")returnedok=true, ALL 6file://fetch contexts failed on Chromium's own refusal (BLK), AND zero content script injected into thefile://tab.proof/ws9/pr1-reader7-r2-after.json):swDirect: "BLK",offscreenDirect: "BLK",bypassA_blobWorker: "BLK",bypassB_nestedWorker: "BLK",bypassC_line1Race: "BLK".bypassD_tabsUpdateResult: "REFUSED:Error: Cannot navigate a web tab to an extension page; use chrome.tabs.create.",bypassD_stealPageRan: false.fileTabContentScriptInjected: false.2. Pre-Existing Extension Iframes on Adopted User Tabs (
proof/ws9/pr1-reader7-r2-after.json)a00d65a0): AfterSetAgentDriven(true)on a user tab with an already-loadedchrome-extension://overlay iframe,Page.captureScreenshotreturned4,560bytes andInput.dispatchMouseEventdeliveredmousedown+clickinside the extension iframe.warOverlayLoaded: true,warOverlayClickedByAgent: false,warCdpAllRefused: true(Page.getFrameTree,Page.captureScreenshot,Accessibility.getFullAXTree,Input.dispatchMouseEvent, andRuntime.evaluateall refused with"Agent browser tools cannot read or act on extension pages.").sandbox.pages+use_dynamic_url: trueinline autofill menu iframe (chrome-extension://8cc5ffca-b21b-4386-8aed-0714c1a3aea2/overlay/menu-list.html?token=VAULT_MENU_TOKEN):bwStyleMenuUsesDynamicUuid: true,bitwardenMenuCdpRefusedBeforeAgentFlag: true(blocks unflagged 3P pluginDevtoolsAsynctoo!),bitwardenMenuCdpRefusedAfterAgentFlag: true. (Note: real Bitwarden'sbackground.js::getBootstrapAutofillContentScriptgates its own inline menu injection on an active logged-in vault account (this.accountService.activeAccount$), and we do not create a Bitwarden account in anyone's name; real Bitwarden loads cleanly alongside our exact Bitwarden-architecture closed-ShadowRootuse_dynamic_url: truesandboxed menu proof.)controlPlainTabEvalOk: true(Runtime.evaluate("1+1") == 2).3. Round-2 Hardening & Round-1 Regression + 3-Extension Benchmark (
proof/ws9/pr1-reader7-r2-after.json,pr1-reader7-proof.json,pr1-async-proof.json)256× "storage"+"debugger") refused at startup (padded257PermManifestRefused: true); 100× flood acrossaction.setPopup/setBadgeBackgroundColor/setBadgeTextColor/enable/disablethrottled to30emittedextension_actionevents (actionFloodThrottled: true).probe-reader7-after.ts): All checkstrue(contextId/executionContextId/uniqueContextId/sessionIdrefused, WAR sub-frame blocked on agent tabs, SW/offscreen/dedicated workerfile://blocked, requiredproxyrefused, forgedtab_seen/probe_tabs_reply/50×subscribeDoS survived, twoContextKind::Privatetabs partitionedCOOKIE:NONE, zero-perm MV2-stylepermissionsno URL leak & agent-tabtabs.updateblocked, external--remote-debugging-port=19222stripped, 0-restartUninstallExtension+ReloadExtensionkeeps SW shimmed).proof/ws9/pr1-async-proof.json):spawn -> Ready:145.9 ms(0registry errors).spawn -> Ready:176.2 ms, first tab painted352.5 ms, uBlock Origin LiteExtensionFiltersReady1,010.7 ms, all 3 loaded1,836.8 ms(0registry errors,0leftover stubs,page_attach_to_resume_us: 46 µs); uBlock blocking + 0-restart uninstall, Dark Reader warm restart persistence (150.4 ms/132.4 ms) + popup off-origin lock, Bitwarden popupCdpCallrefusal, isolated tab (adHits: 1, drStyles: 0), and tamper rejection all passed.Unix FD 3/4 Status (macOS & Linux)
pipe.rs: single-threadedreserve_unix_fdsverifyingfcntl(3/4, F_GETFD) < 0+O_CLOEXEC+RESERVED_FDS,create_unix_pipesduping>= 5viaF_DUPFD_CLOEXEC, rolling back FD 3 on partialdup2failure, marking FDs 3/4FD_CLOEXEC).notes/ORCHESTRATOR-inbox.md) whether one headless engine smoke can run onair(macOS arm64) under the ordered lock; until run on macOS/Linux, live Unix FD 3/4 runtime behavior remains not proved live (audited statically).Conditions Carried Forward & Mandatory Shipping Gate (PRs 2–5)
#280,crates/browser-extensions): Confirmed by READER-8 atb8ba6a24and squash-merged todevatb019dad0.#283,crates/browser-pane): Extensions MUST NOT be enabled for users (PR 3'sHello { extensions: true }path) until ALL FOUR items are ondevand independently confirmed: (1) this PR (#274), (2) follow-upws9/pr1b-ext-subframe-masking(full narrow sub-frame masking: strip extension iframes & closed extension shadow roots without returningbackendNodeId, no externalpierce: true, redactchrome-extension:across all attributes/text, refuseDOM.resolveNode/focus/getFrameOwneron extension nodes, true CDPframeIds, serialized/atomic hit-testing & keyboard focus, nested cross-origin OOPIFs, fail-closed overflow, and painted-outPage.captureScreenshot), (3) WS-1's app-side isolation-escape fixes (review-rd-engine.mdFinding 2), and (4) PREVIEWS' engine-widefile://ban (PR 2 following#281, which is confirmed and merging).ExtensionManagerexclusively viain_user_data(user_data_dir), gate all extension APIs strictly toscope.is_builtin_browser && scope.tool_sid.is_none(), drive state viaInstallMachine::stepwith a monotonic clock, unload before Windowsapprove_staged, persistStoredExtensiononly after engine load succeeds (withrollback_swapon failure), map user-facing errors to catalog keys, display all risk badges/sites/unvetted warning/addeddeltas with Approve hard-blocked onManifestV2/DisallowedPermission, and cap UI image decode dimensions.