Skip to content
docs

pageRequestFrom

pageRequestFrom(event, page): PageRequest | null

Defined in: relay.ts:156

The page’s own request, or null. A content script must take only messages the page itself posted — event.source is the page window and event.origin its origin — or an iframe on the page (an ad, an embed) would have its parent.postMessage stamped with the site’s origin and shown in the approval window as the site (round 3, H6).

PageMessageEvent

PageWindow

PageRequest | null