Skip to content

feat(screenshot): add full-page screenshot support for iframes#683

Closed
absarasw wants to merge 2 commits intoChromeDevTools:mainfrom
absarasw:enhance-screenshot-tool
Closed

feat(screenshot): add full-page screenshot support for iframes#683
absarasw wants to merge 2 commits intoChromeDevTools:mainfrom
absarasw:enhance-screenshot-tool

Conversation

@absarasw
Copy link
Copy Markdown

Add ability to capture full-page screenshots of iframe content by
temporarily expanding the iframe to reveal all scrollable content.

Changes:

  • Add iframeUid parameter to explicitly target an iframe for capture
  • Auto-detect main content iframe when fullPage=true is used
  • Temporarily expand iframe dimensions to capture full scrollable content
  • Restore original iframe styles after screenshot capture
  • Add proper element handle disposal for better memory management

This enables capturing complete iframe content (like embedded editors or
content frames) that would otherwise be clipped to the visible viewport.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Dec 16, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@absarasw absarasw closed this Dec 16, 2025
@absarasw absarasw deleted the enhance-screenshot-tool branch December 16, 2025 11:11
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