You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we need to make clear that loads initiated by FontFace objects are affected by CSP font-src directives. The right way to do this is probably by using the Fetch algorithm in the spec.
We also need to clarify which window is used to perform the CSP check, when multiple windows are involved. For example, if a FontFace is created in an outer window, added to the FontFaceSet in an iframe, and then layout or a load() call on the FontFaceSet in that iframe's window happens, do we use the CSP directives from the outer window or the iframe? Using the Fetch algorithm would probably fix this too.
The text was updated successfully, but these errors were encountered:
Chrome seems to use the CSP directives from the window that the FontFace was created in. Firefox currently uses the CSP directives from the window that triggers the FontFace load, but I plan to change to match Chrome.
I think we need to make clear that loads initiated by
FontFace
objects are affected by CSP font-src directives. The right way to do this is probably by using the Fetch algorithm in the spec.We also need to clarify which window is used to perform the CSP check, when multiple windows are involved. For example, if a
FontFace
is created in an outer window, added to theFontFaceSet
in an iframe, and then layout or aload()
call on theFontFaceSet
in that iframe's window happens, do we use the CSP directives from the outer window or the iframe? Using the Fetch algorithm would probably fix this too.The text was updated successfully, but these errors were encountered: