Repository navigation
Conversation
When the element picker's selection is, or sits inside, a box that scrolls vertically and is fully on screen, the picker offers "Capture whole scrolling area". Choosing it tags that box data-oss-scroll-target and runs the full-page pipeline with scrollTarget on: getMetrics uses the tagged box as the scroller, so each tile is cropped to it and the stitched image holds the box's full content. restoreCapture removes the tag, and a stale one is cleared by the next picker or full-page capture. The capture is stored with the element mode. No new permissions. The element picker smoke gains a scrolling box fixture covering the offer, the tag, the measurement, and the cleanup.
This branch has not been deployed
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.
Full-page capture finds the page's main scroller on its own, but it picks the largest one. A chat pane, a code panel, or a feed column next to it cannot be captured whole: element capture stops at the part on screen.
data-oss-scroll-targetand runs the full-page pipeline withscrollTargeton.getMetricsuses the tagged box as the scroller instead of searching, so each tile is cropped to it and the stitched image holds the box's whole content.elementcapture.restoreCaptureremoves the tag, and the next picker or full-page capture clears a stale one. If the page re-rendered the box and the tag is gone when the capture starts, it falls back to the normal scroller search.elementPickerScrollAreain all 19 locales: the 8 partial locales carry every element picker string, so it is there too.Checks: lint, typecheck, unit tests (1355), build, Firefox build,
smoke:element(new case: offer, tag, measurement, cleanup),smoke:a11y. Live check: loaded the built extension in Chrome for Testing 156, hovered a band inside a 300×300 box holding 1,000 px of content, chose Capture whole scrolling area, and got a 300×1000 PNG with all ten bands in order. The tag was gone afterwards and the box was back at its scroll position.