styledocco
styledocco copied to clipboard
Import fonts don't work in preview iframes in FF
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.
Thanks for letting us know about this. Did you do any experiments around loading fonts in iframes?
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
I'm hitting the same issue.
Can you upload a gist that reproduces the issue? Are you using file:// or http:// to serve the docs?