notmasteryet/pdf.js — comment on commit 90bf9bf117250ce9ea52bdf11a075a9ba06f4fed
File: pdf.js line 6053
By jviereck:

On Chrome, you can't set an `Uint8Array` directly as `imageData`. As there is no feature detection right now, we have to copy each pixel over. See this comment https://github.com/notmasteryet/pdf.js/blob/90bf9bf117250ce9ea52bdf11a075a9ba06f4fed/pdf.js#L6125. Feel free to add a new helper function that copies over each pixel and that we can adjust once we have feature detection in place.