WICG / turtledove

TURTLEDOVE
https://wicg.github.io/turtledove/
Other
521 stars 222 forks source link

Nested iFrame for multiple buyers #920

Open MikhailUz opened 10 months ago

MikhailUz commented 10 months ago

Hello In case if I have 2 different iFrames from 2 different demand partners, but I want to pass one iFrame to a publisher to place on his web page. Is it allowed this be done with nested iFrames, where several child iFrames are being called from a single parent iFrame?

Example of a publisher iFrame:

<html>
...
<body>
...
<iframe src="...">

<iframe src="DSP-1">
<script>joinAdInterestGroup()</script>
</iframe>

<iframe src="DSP-2">
<script>joinAdInterestGroup()</script>
</iframe>

</iframe>
</body>
MattMenke2 commented 8 months ago

All three iframes would need have allow="join-ad-interest-group", so they have the requisite permissions to join interest groups, but otherwise, that should indeed work. Currently, that is not needed, but instead there's a warning displayed about permissions being needed in the future.

Alternatively, both DSPs could delegate join/leave permissions to the origin of the top iframe via a .well-known file, and the join calls could be done there. There are, of course, reasons why the DSPs may prefer not to do that.