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

Import fonts don't work in preview iframes in FF #91

Open
am80l opened this issue Jul 19, 2013 · 4 comments
Open

Import fonts don't work in preview iframes in FF #91

am80l opened this issue Jul 19, 2013 · 4 comments

Comments

@am80l
Copy link

am80l commented Jul 19, 2013

Seems like a security issue, probably the mismatch in the data:/ protocol with http:// causes FF and other browsers to not load import fonts. IME so far only chrome seems to support the loading of fonts via iframes using the data:// protocol.

@marrs
Copy link
Collaborator

marrs commented Jul 22, 2013

Thanks for letting us know about this. Did you do any experiments around loading fonts in iframes?

@am80l
Copy link
Author

am80l commented Jul 23, 2013

Most of my initial testing was around FF since chrome had no issues. I did not test IE. In Firefox I tried setting the security.fileuri.strict_origin_policy to false as suggested in some threads, did not fix the issue. I'll be doing some more testing but my hunch is that FF is blocking the request because of a same origin mismatch with the data:text/html protocol

@satazor
Copy link

satazor commented Sep 14, 2013

I'm hitting the same issue.

@marrs
Copy link
Collaborator

marrs commented Sep 16, 2013

Can you upload a gist that reproduces the issue? Are you using file:// or http:// to serve the docs?

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

No branches or pull requests

3 participants