Repository navigation
feat(browser): complete OOPIF pointer/upload/drop coords, HTML5 drag interception, request postData fallback, and trace/cpu auto-stop timers - #446
Merged
Conversation
…ception, request postData fallback, and trace/cpu auto-stop timers
…lete-typed-tools # Conflicts: # docs/upstream-sync/ledger.json
…ited default grants (#411)
…lete-typed-tools # Conflicts: # docs/upstream-sync/ledger.json
…lete-typed-tools # Conflicts: # apps/desktop/src/surfaces/browser/rpc/exec/profile.rs # apps/desktop/src/surfaces/browser/rpc/session.rs
|
PR test build retired — merged into |
This was referenced Nov 21, 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
Closes every remaining
partlyrow among official's 43 non-Lighthouseexperimental.browserv4 typed operations (db2d889c0e24daf7b34c8dede641fb01fcd02c00), and marksUP-095-TOOLSas"have it"indocs/upstream-sync/ledger.json.What changed (official
db2d889c)exec/point.rs,exec/input.rs,rpc/frames.rs):PointResolvermeasuresgetBoundingClientRect()in the element's own frame/session and walksDOM.getFrameOwner+ ownergetBoundingClientRect()(clientLeft/clientTop+ CSS scale) throughTabFrameState::ancestor_owners(session_for), matching officialrect+sessionFor(packages/gui-plugins/src/browser/chromium.ts). Shared byclick,hover,drag,check, andfiles.drop.draggabledrag interception (exec/input.rs,exec/mod.rs,rpc/mod.rs): checksthis.draggable, enablesInput.setInterceptDrags, runs 10 intermediatemouseMovedsteps (buttons: 1), waits up to 2 s forInput.dragIntercepted, dispatchesdragEnter/dragOver/dropwith the capturedDragData, and always disables drag interception and releases the mouse on completion or cancel (chromium.tscase "drag").files.upload&files.drop(exec/files.rs,apps/browser-engine/src/{wire.rs,engine.rs,agent.rs,frame_authority.rs},crates/browser-pane/src/{protocol.rs,find.rs}):HostMsg::UploadFilescarries optionalsession_id/frame_id, verified against#350'sEngineCdpLedger::check_upload_targetbeforeDOM.setFileInputFiles;files.dropusesPointResolver.network.getNetwork.getRequestPostDatafallback (exec/capture.rs,crates/browser-pane/src/tools/diagnostics.rs): whenincludeBodyis true andhasPostDatawas set without inlinepostData, fetches viaNetwork.getRequestPostDatabeforeNetwork.getResponseBody.trace.startandcpu.start(exec/profile.rs,exec/profile_analyze.rs,rpc/session.rs,rpc/mod.rs):trace.starthonorsdurationMs(1_000..=30_000 ms, default 30 s) andcpu.startcaps atCPU_MAX_DURATION_MS = 30_000ms (packages/gui-plugins/src/browser/profiling-machine.ts:8-11, 200-270).poll_auto_stopsauto-stops, caches the capture, and returns exact deadlines (zero idle wakeups when not recording); a latertrace.stop/cpu.stopreturns the cached capture immediately. Retained analyzers moved verbatim toprofile_analyze.rsto stay under the 800-line ceiling.Recorded differences (
notes/upstream-sync/ours.md)heap.snapshot,cpu.*,trace.*) stays refused by#350's engine ledger while browser extensions are active.lighthousereturns truthfulunsupportedwithout bundling Node.js (official runs Node.jslighthouseinside Electron's desktop process via a live CDP session,packages/gui-plugins/src/browser/lighthouse.ts:1-85).Engine revision
apps/browser-engine/andHostMsg::UploadFiles(optional#[serde(default)]fields).ENGINE_REVISIONstays at4ondev(publishedstable.jsonis at156.0.26-3, sodevis already ahead of published).Checks
cargo check -p opencode-desktop --locked: pass (0 warnings).cargo build --manifest-path apps/browser-engine/Cargo.toml --bin opencode-browser-engine: pass (0 warnings).scripts/guardrails.ps1: 5/5 passed.