dyoo / WeScheme

29 stars 16 forks source link

image->color-list #26

Closed dyoo closed 12 years ago

dyoo commented 13 years ago

bug reported by Danny Heap:

However, it looks as though external images must be brought in using url-image, and those generate a DOM error if I try to create the relevant color-list (I guess since the image is a DOM element).

Here's an example of what I'm trying to do.

  http://www.wescheme.org/view?publicId=bonus-nylon-shirt-macho-blown
dyoo commented 13 years ago

More information: what's happening is that the DOM doesn't allow image->color-list to work when the image has an external source. We get the following error message when that happens:

SECURITY_ERR: DOM Exception 18

One potential workaround that we can use is some kind of image-proxying approach to avoid this same-domain policy issue. This needs a little bit of thought before we go ahead and implement this.

dyoo commented 12 years ago

Fixed. We're using an image proxy to avoid the issue.