Skip to content
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

_sendAdToCreative postMessage with invalid origin #7880

Closed
ReinoutStevens opened this issue Dec 21, 2021 · 3 comments
Closed

_sendAdToCreative postMessage with invalid origin #7880

ReinoutStevens opened this issue Dec 21, 2021 · 3 comments
Assignees
Labels

Comments

@ReinoutStevens
Copy link
Contributor

Type of issue

A bug where a specific banner resulted in a message event without a valid origin.

Description

We encountered a banner ad that triggered a message event without origin ( ev.origin was null ).
As a result, the _sendAdToCreative in secureCreatives.js tries to send a message with origin null, which throws an error.

Steps to reproduce

Unfortunately, it's hard to reproduce, I got the banner a couple of times before it disappeared into the void.
The stack trace from the console did point to that method each time.

Platform details

Prebid v4.43.1, but the code seems unchanged in the code in master

@ChrisHuie
Copy link
Collaborator

@ReinoutStevens Does this look like a similar issue to #7870 ?

@ChrisHuie ChrisHuie added the bug label Jan 3, 2022
@ChrisHuie ChrisHuie assigned dgirardi and ChrisHuie and unassigned dgirardi Jan 3, 2022
@ReinoutStevens
Copy link
Contributor Author

@ChrisHuie Yes, the error looks to be the same.

In our case it appeared to be triggered through a specific ad, and could only be reproduced for a couple of minutes on a specific device. No idea how or why the origin would be null though, or what the actual message was.

@ChrisHuie
Copy link
Collaborator

@ReinoutStevens closing this and consolidating in #7870.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants