styledocco icon indicating copy to clipboard operation
styledocco copied to clipboard

Import fonts don't work in preview iframes in FF

Open am80l opened this issue 11 years ago • 4 comments

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.

am80l avatar Jul 19 '13 23:07 am80l

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

marrs avatar Jul 22 '13 09:07 marrs

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

am80l avatar Jul 23 '13 17:07 am80l

I'm hitting the same issue.

satazor avatar Sep 14 '13 18:09 satazor

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

marrs avatar Sep 16 '13 08:09 marrs