I am developing safari browser extension which should have taking screenshot functionality.
Chrome and Firefox has their own apis to take SS of the current window document. I could not find any safari specific/API documentation for it. The Windows and Tabs API
What would be the best way to achieve it?
SafariBrowserTab
has avisibleContentsAsDataURL
method to get the image data of the currently visible content.For example, in your global page: