New issue
Advanced search Search tips

Issue 864224 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jul 18
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

texImage2D does not respect cross origin property

Reported by bran...@later.com, Jul 16

Issue description

UserAgent: 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:
 
Components: -Blink Blink>WebGL
Labels: Needs-Triage-M67
Cc: phanindra.mandapaka@chromium.org
Labels: Triaged-ET M-69 Target-69 FoundIn-69 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
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! 
864224.png
512 KB View Download
Labels: Needs-Feedback
Status: ExternalDependency (was: Untriaged)
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".

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!
Status: WontFix (was: ExternalDependency)
Thanks!

Sign in to add a comment