Safari has a strange behavior dealing with the location.replace method.

Safari delays each location.href setting (or location.replace call) if in the hierarchy of the page that is going to be replaced there is a frame that is downloading something.

This issue does not casue any problem to Lightstreamer, but if you want to replace a page that contains in its hierarchy the lsengine.html file while streaming you will not be able to do it.

To work-around the problem you can call changeStatus("DISCONNECTED"); near the location.replace call (or location.href setting). It is not important if it is called after it or before it because in any case Safari will remember where you want the page to be redirected and will apply the redirection as soon as it reaches its strange conditions.

A test case is available here:
http://app.lightstreamer.com/testMod...cationReplace/
(when you click on the TEST link a location.replace is called)