thinkpixellab/agent8ball — Issue #30: muddled global variables breaking site in Opera
Author: nimbupani
Created: 2012-02-21 22:45:56+00:00
State: open

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?