Add agibson's 100% pure sorcery fix for Safari.