The Canvas pilot test feature has been removed from Chrome 44 ( crbug.com/475808 ). It was implemented by capturing calls to the canvas methods on the page.
I previously used this Canvas validation function to create smaller test cases for <canvas> errors. Upon learning of the removal of the Canvas validation function, I developed a new tool for capturing canvas snapshots. This tool intercepts all the canvas commands and saves the result in a 2D context, and also offers a method for retrieving all the teams played so far. The tool and documentation are available at https://github.com/Rob--W/canvas-interceptor .
Currently, only a subset of the 2D canvas APIs are captured because not all kinds of parameters are serialized. Everything that is not implemented is marked as TODO in the source code , so if you want to use this tool, feel free to submit tensile requests to fill in the missing parts.
To use this tool in an extension, enter the code on the page through the content script using run_at document_start . Since maintaining the state of the canvas is quite expensive in terms of memory, I recommend inserting a script if necessary using the declarativeContent.RequestContentScript action.
Rob w source share