disable context menu osx 10.6.4 and safari 5

Has anybody had any problems disabling the context menu when you right click on OS X 10.6.4 and safari 5.0?

//perlohmann

It is ofcorse the context menu in the unity player I am talking about :?

We have it working in pretty much all other browsers on win and even in an older version of OSX (Im not sure about which safari version the older OSX uses, but I will get back about that later).

EDIT: It works on OSX 10.5.8 and safari 4.0.4.

//perlohmann

It works on win vista and safari 5.0.2 (and all other major browsers), but it does not work on Mac OSX 10.6.4 and safari 5.0.1 =(

Are there really no one that can help me out with this or have had the same experiance?

The code that displays the player is:

document.write('<object id="UnityObject" classid="clsid:444785F1-DE89-4295-863A-D46C3A781394" class="unityPlayerSize"> \n');
document.write('  <param name="src" value="xxxxx.unity3d" /> \n');
document.write('  <param name="logoimage" value="logo.png" /> \n');
document.write('  <param name="disableContextMenu" value="true" /> \n');
document.write('  <embed id="UnityEmbed" src="xxxxx.unity3d" class="unityPlayerSize" logoimage="logo.png" type="application/vnd.unity" pluginspage="http://www.unity3d.com/unity-web-player-2.x" disableContextMenu="true" /> \n');
document.write('</object>');



<noscript>
   <object id="UnityObject" classid="clsid:444785F1-DE89-4295-863A-D46C3A781394" class="unityPlayerSize" codebase="http://webplayer.unity3d.com/download_webplayer-2.x/UnityWebPlayer.cab#version=2,0,0,0">
      <param name="src" value="xxxxx.unity3d" />
      <param name="disableContextMenu" value="true" />
      <param name="logoimage" value="logo.png" />
      <embed id="UnityEmbed" src="xxxxx.unity3d" class="unityPlayerSize" type="application/vnd.unity" pluginspage="http://www.unity3d.com/unity-web-player-2.x" />
   </object>
</noscript>

It works in all browsers that I have encountered except when right clicking on Mac OSX 10.6.4 and safari 5.0 (might have been 5.0.1). When you do it on that you get the fullscreen option which should not be there.

//perlohmann