-
Notifications
You must be signed in to change notification settings - Fork 76
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
Exception when iframe with UC is in srcdoc iframe #147
Comments
@Zer0Divis0r could you expand a bit on the use case here? Why wound UC be loaded in an iframe with srcdoc attribute or src=about:blank? |
This should be an issue only when Prebid (not the creative) lives in an origin-less frame. I don't think just broadcasting the message to To support this use case, we could change the flow to:
This should be backwards compatible and lock out actors that are not in possession of a valid |
The use case is implementation of ad stack without adserver, and the container creative frames are created manually. This is very similar to the basic implementation, but with sandboxed frames. |
Problem
On web, when universal creative is loaded in an iframe with
srcdoc
attribute, orsrc=about:blank
, orblob
URL, an exception happens when postMessage is sent.In my case, the specific error message would be:
To Reproduce
The following example would create an iframe and use blob to create it's contents.
In renderingManager in line 125 it would eventually fail, because
publisherDomain
would have ablob:
orabout:
prepend/protocol.Expected behavior
To be conceous of non-standard protocols and/or origins, and, maybe, replace targetOrigin to "*" in such cases? Not sure.
The text was updated successfully, but these errors were encountered: