Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live sample images not loading via iframe #2331

Closed
davidfkimball opened this issue Jan 4, 2021 · 10 comments · Fixed by mdn/infra#478
Closed

Live sample images not loading via iframe #2331

davidfkimball opened this issue Jan 4, 2021 · 10 comments · Fixed by mdn/infra#478

Comments

@davidfkimball
Copy link

MDN URL: https://developer.mozilla.org/en-US/docs/Web/CSS/filter

What information was incorrect, unhelpful, or incomplete?

Most of the sample images are broken links - see attached screenshot.

Screen Shot 2021-01-04 at 11 41 29 AM

(It is possible that you intentionally chose broken image link images as the sample images...but if so, that's very confusing.)

Specific section or headline?

Functions (#Functions)
and
Combining Functions (#Combining_functions)

What did you expect to see?

Normal sample images.

Did you test this? If so, how?

Refreshed and hard-refreshed the page a few times.
Turned off AdBlockPlus.
Tried it in Chrome and Safari (MacOS). (The broken link image is slightly different in Safari)

MDN Content page report details
@rachelandrew
Copy link
Contributor

Thanks @davidfkimball - I spotted this today as well when working on that page, so it is being looked into: mdn/content#906

@peterbe peterbe transferred this issue from mdn/content Jan 4, 2021
@peterbe
Copy link
Contributor

peterbe commented Jan 4, 2021

The problem is that https://yari-demos.prod.mdn.mozit.cloud/files/3708/Test_Form.jpg doesn't load.
I think the problem could be solved if we used https://mdn.mozillademos.org instead for the iframes.

@peterbe
Copy link
Contributor

peterbe commented Jan 4, 2021

@escattone How come https://mdn.mozillademos.org/files/3708/Test_Form.jpg but https://yari-demos.prod.mdn.mozit.cloud/files/3708/Test_Form.jpg doesn't?

Ideally, we shouldn't be relying on any images via Kuma but here we are. One problem at a time.
Besides that fancy code we have that can download external images, which is a flaw, to a local image (fixable flaw), only works for images in the HTML like <img src="https://mdn.mozillademos.org/files/12345/foo.jpg">.

@peterbe peterbe changed the title Issue with "filter": … Live sample images not loading via iframe Jan 4, 2021
@peterbe
Copy link
Contributor

peterbe commented Jan 4, 2021

@escattone
Copy link
Contributor

escattone commented Jan 4, 2021

@peterbe We should prioritize this tomorrow. We can discuss more tomorrow, but I think we have two choices here:

  1. Run our fixable flaws on these images (so they're downloaded to the repo and served the new way). Oh, I see that these image URI's are embedded in the live sample code, and that we don't fix those kinds of flaws yet.
  2. Modify kuma to accept yari-demos.prod.mdn.mozit.cloud and yari-demos.stage.mdn.mozit.cloud as safe attachment domains.

@escattone
Copy link
Contributor

@peterbe Another option, a bit more radical, would be to point mdn.mozillademos.org to the same CDN as developer.mozilla.org. This would also be more involved as well. We'd have to have AWS transfer the CNAME from the one CDN to the other, change the DNS, and also add mdn.mozillademos.org to the SSL cert for the primary Yari CDN.

@escattone
Copy link
Contributor

@peterbe I think I've settled on a nice solution until we fix all of these image flaws. I was able to go with option #2 above but with only changes to some Kubernetes environment variables. It's working on stage. See https://developer.allizom.org/en-US/docs/Web/CSS/filter. I'll deploy to prod tomorrow morning.

@escattone
Copy link
Contributor

This is resolved (see https://developer.mozilla.org/en-US/docs/Web/CSS/filter).

@davidfkimball
Copy link
Author

davidfkimball commented Jan 5, 2021 via email

@escattone
Copy link
Contributor

Thanks again for reporting this @davidfkimball!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants