I don't think we are doing the current xobject stuff well. Shouldn't we be not running any of those codepaths for newer browsers? It seems that something is causing xobject to be defined and thus run the code that was here. Maybe the xobject check should be better?