fix plugin for Safari 5 lameness

This commit is contained in:
David Rose 2011-08-25 07:35:30 +00:00
parent b2cc3f3490
commit 443fff604b
2 changed files with 7 additions and 0 deletions

View File

@ -3864,6 +3864,7 @@ add_cocoa_modifier_flags(unsigned int &swb_flags, int modifiers) {
////////////////////////////////////////////////////////////////////
void P3DInstance::
send_notify(const string &message) {
nout << "send_notify(" << message << ")\n";
P3D_request *request = new P3D_request;
request->_instance = NULL;
request->_request_type = P3D_RT_notify;

View File

@ -210,6 +210,12 @@ begin() {
set_failed();
return;
}
#else
// While Safari 5 on Mac claims to provide this function, it doesn't
// appear to work. (!) So we pretend we never have it on Mac.
// Fortunately, this hack does us no harm because the _request_timer
// hack works fine on OSX.
has_plugin_thread_async_call = false;
#endif // __APPLE__
string url = PANDA_PACKAGE_HOST_URL;