CanvasBlocker icon indicating copy to clipboard operation
CanvasBlocker copied to clipboard

Adding canvas "bitmaprenderer" context

Open CookingRoberta opened this issue 5 years ago • 2 comments

Description

At the moment HTML 5 canvas provides different modes for 2d and 3d:

  • CanvasRenderingContext2D for "2d",
  • WebGLRenderingContext for "webgl" and "experimental-webgl",
  • WebGL2RenderingContext for "webgl2"
  • ImageBitmapRenderingContext for "bitmaprenderer"

Current Behavior

At the moment CB seams not supporting "bitmaprenderer" context. I am not sure if this is needed because there is transferToImageBitmap function that cover this mode.

This would be possible improvement. Please help me with the clarification if this is needed.

Context

Canvas checker JavaScript may check "bitmaprenderer" explicitly and since there is no modified api for this check may bring more fingerprinting entropy. Similar problems may arise with new canvas modes in the future.

CookingRoberta avatar Dec 18 '20 22:12 CookingRoberta

The ImageBitmapRenderingContext is only usable with OffscreenCanvas which are not yet enabled in Firefox by default and have bugs. When OffscreenCanvas are available and working in Firefox I have to do some work. Before that I cannot work on it as I cannot test anything.

kkapsner avatar Dec 22 '20 22:12 kkapsner

Thanks for the clear explanation. Feel free to close this if needed.

CookingRoberta avatar Dec 24 '20 12:12 CookingRoberta