[BUG #8642] apply fix for Safari 8+
fixed iOS workaround