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

Issue With Rubicon adapter on Safari

Open jdelhommeau opened this issue 11 years ago • 2 comments

It seems there is a bug in the Rubicon adaptor with safari and edge browser.

this line is not working in Safari (tested by me) and neither in edge (so I was told, I didn't test)

line 879 in prebid.js : var rubiconObj = iframeObj.contentWindow.RubiconAdServing;

the contentWindow variable is undefined in Safari. In order for it to work, we need to change the line to:

var rubiconObj = iframeObj.window.RubiconAdServing;

jdelhommeau avatar Dec 02 '15 09:12 jdelhommeau

You could change that line to:

var rubiconObj = iframeObj.contentWindow.RubiconAdServing || iframeObj.window.RubiconAdServing;

That way if the first doesn't exists the second will be used

ialex avatar Dec 02 '15 15:12 ialex

fixed in #130

hjeong12 avatar Dec 08 '15 06:12 hjeong12