Hi,
T.l.d.r. When can I use CanvasRenderingContext2D.drawWindow() in my WebExtension?
I’ve made a WebExtension but found out there’s no access to CanvasRenderingContext2D.drawWindow().
Firefox has the awesome ability to take a single screenshot of the entire document. Also what’s outside of the viewport, and at very high resolution too when specifying a custom scale using this method:
https://dxr.mozilla.org/mozilla-central/source/b2g/components/Screenshot.jsm
The only API that’s currently available for WebExtensions is tabs.captureVisibleTab().
But this good enough for me as it would involve scrolling and stitching individual captures.
Would it be an idea to expose the Screenshot functionality (like drawWindow()) through a tabs API?
I don’t think Google Chrome will implement this soon. As far as I’m aware that browser doesn’t have the ability to take full document captures at all.
Thanks in advance.