Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

secureCreative -> receiveMessage throws an error when no adObject is found

Open OhadTs1985 opened this issue 8 years ago • 2 comments

Type of issue

Bug

Description

When two instances of Prebid runs in the same scope the secureCreatives.js module of instance no.1 might listen to events thrown by a creatives that runs in a cross domain iframes which has been created by instance no.2. This results in the receiveMessage handler not finding adObject (sets as undefined) and an error thrown when the sendAdToCreative method tries to access the adObjects.adId (line 56 in the secureCreative.js module).

OhadTs1985 avatar Aug 09 '18 06:08 OhadTs1985

Thanks for the bug report. It might expedite a solution if you provided an example of this.

mkendall07 avatar Aug 14 '18 18:08 mkendall07

@OhadTs1985 do you have an example of this or a test page you could point us to?

bwoolcott avatar Oct 11 '18 21:10 bwoolcott