-
Notifications
You must be signed in to change notification settings - Fork 36
Spec cross-origin reportEvent() support #152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Methods cannot be sent. Do you mean exposed? Or am I missing something? |
Edit: I think I misunderstood. Is "the same-origin document" just the fenced frame document? That is, the document created by the FencedFrameConfig, i.e., the top-level document in a |
I mean exposed. The wording should be "Beacons can be sent with
Yes. Same-origin iframes embedded in fenced frames have no control over the opt-in process. I'll update the wording to match that. |
SHA: dbb22ca Reason: push, by domfarolino Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Reporting beacons can now be sent with
window.fence.reportEvent()from documents that are cross origin to a fenced frame config's mapped URL. To do this, there must be opt-in from both the document created with the FencedFrameConfig as well as the cross-origin document that wants to send the beacon. The document created with the FencedFrameConfig opts in with a new "Allow-Cross-Origin-Event-Reporting=true" response header. The cross-origin document opts in by callingreportEvent()with thecrossOriginExposed=trueparameter.This PR updates the spec to match that behavior. More specifically:
reportEvent()to support being called from a document that is cross-origin to the fenced frame config's mapped URL.crossOriginExposed=trueopt-in from the document that's sending the beacon.Preview | Diff