ericwbailey / lowvision.support

👁 Help improve your website's accessibility by simulating common low vision disorders and color-blindness.
http://lowvision.support
MIT License
14 stars 1 forks source link

Unable to load colorblindness simulations #1

Open JimBobSquarePants opened 7 years ago

JimBobSquarePants commented 7 years ago

Attempting to test the following website http://responsivebp.com with any of the colorblindness simulations leads to the following error:

Unsafe attempt to load URL data:image/svg+xml;utf8,#has-protanopia from frame with URL http://lowvision.support/. Domains, protocols and ports must match.

This appears to be a cross-browser issue.

ericwbailey commented 7 years ago

Thanks for the head's up. I'm seeing that error as well in Chrome and Safari, but interestingly, it'll work on my version of Firefox (51.0.1).

I'm not the best at troubleshooting cross-domain issues like this, but I'll see if I can get the issue fixed over the weekend. This site is long overdue for an update, regardless.

ericwbailey commented 7 years ago

Did a little digging, looks like this is A Thing: https://bugs.chromium.org/p/chromium/issues/detail?id=470601

Going to see if svg4everybody does anything.

ericwbailey commented 7 years ago

Loading the SVG via AJAX now and using svg4everybody, still seeing the error. Did find this issue while searching, but haven't gotten it beat yet.

Honestly, I'm debating pumping the brakes on this issue and rebuilding it from scratch. There's a lot of not-so-great code I'd like to make good on.

JimBobSquarePants commented 7 years ago

Thanks for investigating this. I'll have a dig around myself as soon as I am able also and see if there is a different approach that can be taken.

ericwbailey commented 7 years ago

For what it's worth, I've started the initial setup on a redesign. You can follow progress here, if you want: https://github.com/ericwbailey/lowvision.support/tree/redesign

Progress will probably go slow, but it's a start.

JimBobSquarePants commented 7 years ago

Aw nice! I'd love to see more awareness of the site once it's up and running again. Easily best-in-class for usability and result compared to others.