Skip to content

[css-font-loading] unclear how CSP interacts with font loads #2113

@heycam

Description

@heycam

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions