Skip to content

Provide cross-origin rootBounds and rootMargin with frame-level opt-in #280

Open
@ojanvafai

Description

@ojanvafai

In order to avoid leaking information about the parent page, IntersectionObserver doesn't allow rootBounds and rootOrigin when used from inside a cross-origin frame. As a result, libraries that run as a top-level script, but embed a cross-origin frame are having difficulty deploying.

We should add a frame-level opt-in so that this information can be exposed if the parent page is OK with it. We could do this via FeaturePolicy, embedded CSP, or a new attribute on iframe.

@szager-chromium

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions