Repository navigation
fix(screenshot): project transformed iframe geometry accurately - #752
Merged
leeguooooo merged 4 commits intoOct 26, 2026
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 7 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
1 of 2 tasks
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.
What and why
Annotated screenshots currently refuse rotation, skew, reflection and perspective at out-of-process iframe boundaries. Scrolling frames can also produce enlarged and displaced boxes because the owner content quad includes scrollbar space while
Page.getLayoutMetricsexcludes it.Compose full projective transforms across renderer boundaries, project all four element corners, and form the final capture-relative bounding box. Measure each child viewport, including scrollbar space, in the existing required isolated world. Preserve explicit refusal for missing, collapsed, concave, ill-conditioned or horizon-crossing geometry. Simple affine transforms retain their exact arithmetic path.
Part of #747. Nested relay targets also require the separate attachment fix in #749; this PR does not change relay attachment or screenshot capture transport.
Stealth mode
Annotations remain CLI raster operations. Geometry uses CDP quads and a read-only
innerWidth/innerHeightexpression in the required isolated world, without new page globals, nodes, styles, listeners, input or requests. There is no main-world fallback orRuntime.enable. Unavailable isolation fails explicitly. No tab activation or timing workaround is added.Tests
All compilation and browser execution used disposable GitHub-hosted runners and fresh profiles, not a personal browser.
9aa58f938392c4184c6e0ff70c248365f508dfff, containing this production change through588a5487and fix(relay): attach nested out-of-process iframe targets #749's nested relay fix. Tested binary SHA-256:20f08e2cbf34a8ab830aad4094b4a9938ac7803d565526ec4102f86a18240d3a. The final commit only mirrors documentation.Validation limit: the extended geometry matrix uses active owned fixture tabs to isolate projection. Earlier inactive relay transform captures intermittently stalled, including unannotated controls; plain active/inactive controls all passed. Those capture timeouts remain separately tracked in #747, and this PR does not claim to fix them. Likewise, the public detector comparison remains red on shared WebGL and managed-challenge outcomes; neither benchmark results nor native fingerprints are altered here.
Docs