Skip to content

Clarify Input Exclusion and interactions across iframes #118

@mmocny

Description

@mmocny

Context: a webpage which uses cross-frame communication (e.g. postMessage) to make changes to an another iframe in direct response to interactions.

Visually, this looks exactly as if the shift happened as a direct consequence of the interaction, and if it were all in one frame, we would have excluded it from CLS calculation (via hadRecentInput)


Today the spec states: "An excluding input is any event from an input device which signals a user’s active interaction with the document"

I think the key question for discussion is: Should an interaction from another iframe "signal" this document?

Perhaps for same-origin frames, we could default to signalling all frames.

But for cross-origin, we cannot. Perhaps we could check for the use inter-frame-communication (i.e. postMessage) that happen as a direct consequence of an interaction (either via timer, or task attribution). But, I do not expect we will do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions