Monetization in iframes

Purpose
Explain how monetization behaves when iframes are involved.
Sources
Web Monetization Explainer - iframes
Technical contact
Marcos, Alex

MOVED to main documentation page.

iframes have an allow attribute that specifies its feature policy. The WMS defines the monetization value that, if set, allows monetization of the page in the iframe.

If allow="monetization" is set, the iframe will start up a monetization stream that's independent of the main page's stream. If the value is not set the iframe cannot be monetized.

This behavior will be described in the Web Monetization Specification. Issue.

Nick: The extension currently supports arbitrarily nested iframes, as long as the chain of elements all include "allow monetization" in their content security policies. We've talked about various ways of sharing and what makes the most sense. Only the top frame? Only the currently "visible"/"active"f frame[s], shared equally etc. There's not been much clear consensus

Nick: It was quite a pain to implement/hack and I imagine would be pretty tricky to do natively.

This would mean the iframes share the parent page's stream.