This repository has been archived by the owner. It is now read-only.
Chrome prototype: work around "save visible" captureVisibleTab delay #4300
Milestone
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
On Chrome, the "save visible" captured image sometimes includes the selection overlay. The problem is more pronounced on heavyweight pages, like The Verge.
So far, I've tried:
offsetWidth) and then checking the visibility is 'hidden' before taking a shotIt seems there are competing rendering asynchronicities at work, but I'm not sure we have anything that can tell us when the iframe is gone from the DOM.
One option might be to explore the Intersection observer API.
Another option: screenshot the page before displaying the preselection iframe, though this might introduce its own issues.
The text was updated successfully, but these errors were encountered: