3 ms·
> Does anybody know if there are plans to offer access to the screenshot library via a JS API somewhere soon in the future? It's almost certainly not going to
by paulirish 11y ago
> Does anybody know if there are plans to offer access to the screenshot library via a JS API somewhere soon in the future?
It's almost certainly not going to happen, due to security concerns. There previously had been attempts to toss a DOM screenshot into a WebGL texture but that was also found to be vulnerable to timing attacks that could reveal private data.
- chris_engel 11y agoWell, it could ask for permission - like the Fullscreen API, or the HTML5 Notifications, or...
- kevingadd 11y agoIt's a hard permission to give safely, because once the application has permission to take screenshots there are tons of ways for it to get third-party content into the viewport and capture it.