WICG / WICG/webmonetization

Should host website be able to capture MonetizationEvent from iframes?

Open
#496 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion specification
Dominant language
HTML
Stars
607
Forks
166
Avg merge
2d 7h
Merged PRs (30d)
7

Description

If a document contains <iframe allow="monetization">, should window.addEventListener('monetization') include events from iframes? event.target could be relevant iframe in this case.

In other words, should a website be able to know how much money is being sent to the embeds on the page Event bubbling doesn't allow this, but perhaps window should include events from all browsing contexts on the page?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining the stated interaction between an iframe with allow="monetization", window.addEventListener('monetization'), event.target, and event bubbling. Done means reaching and documenting a clear specification decision about whether the host receives MonetizationEvent events from embedded browsing contexts.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
payments, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.