Permalink
Browse files

[fix] Safari: all requests now synchronous with Safari (except ping l…

…oop)

Otherwise, Safari gets very confused when sync and async requests are interleaved.
Of course, it'd be better to have everything asynchronous...
  • Loading branch information...
1 parent ee92891 commit 9e02e07bbb2df35917bc088755c5d9a43650eb20 François-Régis Sinot committed Oct 4, 2011
Showing with 8 additions and 5 deletions.
  1. +8 −5 opabsl/jsbsl/bslSession.js
View
@@ -373,7 +373,8 @@ var LowLevelPingLoop = {};
delete client_stored[serialized.cl_id];
internal_ajax({ type : 'POST',
url : "/chan/remove",
- data : JSON.stringify(serialized)});
+ data : JSON.stringify(serialized),
+ async: async_rpc_return});
}
},
@@ -428,9 +429,10 @@ var LowLevelPingLoop = {};
if (hsuccess != undefined) msg_to_post.hsuccess = serialize_uu(hsuccess);
var serialized_msg = JSON.stringify(msg_to_post);
internal_ajax({ type : 'POST',
- url : "/chan/send",
- data : serialized_msg
- });
+ url : "/chan/send",
+ data : serialized_msg,
+ async: async_rpc_return
+ });
},
#<Ifstatic:OPA_CPS_CLIENT>
@@ -762,7 +764,8 @@ var LowLevelPingLoop = {};
var rep = internal_ajax({
type : 'POST',
async : false,
- url : "/chan/sharedaddr"
+ url : "/chan/sharedaddr",
+ async: async_rpc_return
});
shared = JSON.parse(rep.responseText);
}

0 comments on commit 9e02e07

Please sign in to comment.