Skip to content

feat(cdp): support DOM.scrollIntoViewIfNeeded - #542

Open
lisa0314 wants to merge 1 commit into
h4ckf0r0day:mainfrom
lisa0314:fix/531-scroll-into-view-if-needed
Open

feat(cdp): support DOM.scrollIntoViewIfNeeded#542
lisa0314 wants to merge 1 commit into
h4ckf0r0day:mainfrom
lisa0314:fix/531-scroll-into-view-if-needed

Conversation

@lisa0314

@lisa0314 lisa0314 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • implement DOM.scrollIntoViewIfNeeded for nodeId, backendNodeId, and objectId
  • invoke the existing element scroll shim so subsequent input hit testing uses the resolved target
  • reject missing, unknown, and non-scrollable nodes instead of returning a false success

Validation

  • cargo nextest run -p obscura-cdp (98/98)
  • cargo build --release
  • obstacle course (33/33, 12.0 ms median latency)
  • git diff --check

Addresses the DOM.scrollIntoViewIfNeeded portion of #531.

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