I meet the same problem. When I set gadget content type='html' and copy the same code into [[-CDATA -]]. everything is ok.
If I use external iframe. I must reference the opensocial by:
var opensocial = parenet.opensocial;
var gadget = parent.gadget;
Firefox erroConsole display:
Error: Permission denied to get property Window.opensocial
Source File: http://sammi.webhosting-for-free.com/magpie/MusicStore.html?appid=118429&country=CA&installState=1&lang=en&oauth_consumer_key=http%3A%2F%2Fopenorg.googlecode.com%2Fsvn%2Ftrunk%2Fmyspace%2Fgadget%2FTest.xml&oauth_nonce=633600535068048130&oauth_signature=OVFCTPg6KhCcJskeHOzA0LsUG3g%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1224456706&oauth_version=1.0&opensocial_owner_id=415452993&opensocial_token=PNx%2FQXDkqO07cXsOcnl7V5v4g1tTiGhLHGEYMu3LUeKyK4i4%2FrhJ8o%20VUW3zyocql1ZEMWy9z6kkkse6SF%20uJJcbgHvcJGIC2BhBbmhAc6Q%3D&opensocial_viewer_id=415452993&ownerId=415452993&ptoString=COMMENTS%2CBLOG%2CBULLETINS%2CPROFILE%2CSEND_MESSAGE%2CSHARE_APP&v=dev&viewerId=415452993
Line: 5
I guess I need find some solution by using Oauth signature. Frustated.
Sammi