Quality is delighting customers
Can give little more details as what error you see on Safari,
As per my guess i think the problem is with the profile with which safari gets loaded.
Create your own profile and specify profile path in your script.
let me if it works