这是indexloc提供的服务,不要输入任何密码
Skip to content

PSA: Use window.fence.notifyEvent() to notify the embedding document of a click #230

@VergeA

Description

@VergeA

As part of the Fenced Storage Read API, fenced frame documents will have access to a new function called window.fence.notifyEvent(). When called with a user-generated click event, this function will fire a fencedtreeclick event in the embedding document, allowing the embedder to listen for a click inside of the fenced frame. Note that fencedtreeclick events do not contain position or timing information, and just signal that a click has occurred.

This function will be available in all types of fenced frames, including those initialized from Protected Audience auctions and sharedStorage.selectURL(). However, Fenced Frames Ad Reporting (FFAR) should still be used for reporting clicks on ads. Use window.fence.notifyEvent() only to report the presence of a click to the embedding document, and embedders should prefer this API over placing an overlay on the frame.

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