Untainted canvas:
PASS: Calling getImageData() from an untainted canvas was allowed.
PASS: Calling toDataURL() from an untainted canvas was allowed.
Tainted canvas:
PASS: Calling getImageData() from a canvas tainted by a remote image was not allowed - Threw error: SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data..
PASS: Calling toDataURL() from a canvas tainted by a remote image was not allowed - Threw error: SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported..
PASS: Calling getImageData() from an untainted canvas was allowed.
PASS: Calling toDataURL() from an untainted canvas was allowed.
PASS: Calling getImageData() from a canvas tainted by a tained canvas was not allowed - Threw error: SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data..
PASS: Calling toDataURL() from a canvas tainted by a tained canvas was not allowed - Threw error: SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported..
PASS: Calling getImageData() from an untainted canvas was allowed.
PASS: Calling toDataURL() from an untainted canvas was allowed.
PASS: Calling getImageData() from a canvas tainted by a remote image tainted pattern was not allowed - Threw error: SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data..
PASS: Calling toDataURL() from a canvas tainted by a remote image tainted pattern was not allowed - Threw error: SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported..
PASS: Calling getImageData() from an untainted canvas was allowed.
PASS: Calling toDataURL() from an untainted canvas was allowed.
PASS: Calling getImageData() from a canvas tainted by a tainted canvas pattern was not allowed - Threw error: SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data..
PASS: Calling toDataURL() from a canvas tainted by a tainted canvas pattern was not allowed - Threw error: SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported..