News for hackers. Stuff that matters.
Re:Firefox takes a bite out of the canvas ‘super cookie’ by ballenf on Monday October 30, 2017 @07:14PM (#15589837)
What are the legitimate uses for a webpage to "read" the content of a canvas element?
Re:Firefox takes a bite out of the canvas ‘super cookie’ by humblebee on Monday October 30, 2017 @07:31PM (#15589936)
A trivial use case would be to save a drawing the user has created as a jpg/png and allow the user to download it.
Re:Firefox takes a bite out of the canvas ‘super cookie’ by bjackman on Monday October 30, 2017 @07:30PM (#15589923)
One example: applying an effect to an image using custom JS.

I also once used this as a fun way to arrange the repeated string "FILE NOT FOUND" in the shape of the characters "404", using the system's native font.

Re:Firefox takes a bite out of the canvas ‘super cookie’ by syrrim on Monday October 30, 2017 @08:32PM (#15590238)
I've used it in the past to prerender components on a secondary canvas, before combining them together on the main canvas. There might be a better way of doing this though.
Re:Firefox takes a bite out of the canvas ‘super cookie’ by yoklov on Tuesday October 31, 2017 @10:27AM (#15593460)
Many games will want to, both for plain canvas or for webgl.