There are no snapshots of parts of the page in the canvas specification in the current method. Firefox extends the canvas element with the drawWindow () method , which accepts the coordinates and dimensions of the area in which you want to take a picture from. However, this method is only available for scripts running with privileges at the chrome level due to security issues. A comment on the method in the code indicates that this may change in the future:
// We can't allow web apps to call this until we fix at least the
// following potential security issues:
//
//
//
// scrollbars should be allowed)
http://mxr.mozilla.org/mozilla/source/content/canvas/src/nsCanvasRenderingContext2D.cpp#2352
source
share