It looks like the channel order gets mixed up. I'll post a test case reduced from fast/canvas/webgl/gl-pixelstorei.html.
Nope, this must be something specific about my changes. I'll file another bug if I can work out what's going on.