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

muddled global variables breaking site in Opera #30

Open
nimbupani opened this issue Feb 21, 2012 · 0 comments
Open

muddled global variables breaking site in Opera #30

nimbupani opened this issue Feb 21, 2012 · 0 comments

Comments

@nimbupani
Copy link

The problem arises from the ad script, http://pagead2.googlesyndication.com/pagead/show_ads.js In this script, Opera gets into a code path due to the following browser sniffing –

var Ma=navigator.userAgent,Na=window.google_loader_experiment;
Q=(Aa.test(Ma)?i:Ba.test(Ma)?"async_bad_black"==Na:g)&&!window.google_container_id&&(!window.google_ad_output||"html"==window.google_ad_output)}
P=Q

later,
if(P){ ... }else{else window.q=j, ...

This messing up of window.q causes the failures. If we put Gecko or Chrome into this path or simply alter 'window.q' in the code path they take, the same failures are reproduced. Seems like a case of two unrelated scripts messing up with a global variable.

If you are not using these ads, perhaps the script could be removed?

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

No branches or pull requests

1 participant