texImage2D does not respect cross origin property
Reported by
bran...@later.com,
Jul 16
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36 Steps to reproduce the problem: 1. Go to http://jsfiddle.net/68DtX/72/. Press apply filter button. 2. Receive error: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The image element contains cross-origin data, and may not be loaded. What is the expected behavior? texImage2D is passed an HTMLImageElement with the crossOrigin property set to anonymous. No error should be thrown. The same JSFiddle will work perfectly fine on Firefox and no errors are reported. Changing the fiddle to use ImageURL2 will work on Chrome as expected. What went wrong? Unexpected error thrown. Did this work before? N/A Chrome version: 67.0.3396.99 Channel: stable OS Version: OS X 10.13.5 Flash Version:
,
Jul 17
,
Jul 17
Able to reproduce the issue on reported chromium version 67.0.3396.99 also on latest chrome 69.0.3494.0 using Mac 10.13.5, Ubuntu 17.10 and Windows 10. Same behavior is seen on M60(60.0.3112.113) hence considering it as non-regression and marking it as Untriaged. Thanks!
,
Jul 17
Please reduce this test case further. I've stepped through the code in the debugger and it looks like the image's src might be being set, and triggering loading, before the crossOrigin attribute is set to "anonymous".
,
Jul 18
Hi, I found that the initial image load was being done without the crossOrigin property set. I fixed the code to set it and the example is now working on Chrome. Thanks for your help!
,
Jul 18
Thanks! |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by kochi@chromium.org
, Jul 17