(CS) Workaround Safari bug when cancel prompt