See test case in URL. It draws a very-transparent red column on the left, then fills the rest of the canvas with slightly-transparent green, then calls putImageData(getImageData(...), ...) which should have no effect. Expected output: alert box saying "0,255,0,254" (or maybe 253), alert box saying "0,255,0,254" (or maybe 253), green canvas. Actual output: alert box saying "0,255,0,253", alert box saying "255,0,0,253", red canvas. Tested on Windows r32574.
Created attachment 20914 [details] Fix bugs in the loops of both get and putImageData
Created attachment 20915 [details] Fix bugs in the loops of both get and putImageData
Comment on attachment 20915 [details] Fix bugs in the loops of both get and putImageData Needs a test case and changelog when you land. Otherwise fine.
Created attachment 20971 [details] Patch to fix the bug
Comment on attachment 20971 [details] Patch to fix the bug Looks saner. Still needs a ChangeLog when landing.
Fixed in r32878.