Created
May 18, 2013 04:10
-
-
Save kennethkufluk/5603204 to your computer and use it in GitHub Desktop.
Example of pushState breaking Safari 6.0.4.
Run this anywhere. Click the page, see the url change to "page2".
Use two fingers to swipe back. Wait five seconds, and the page will fade away, because the paint server dies.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<title>Bug in Safari 6.0.4</title> | |
<body> | |
Run this anywhere. Click the page, see the url change to "page2".<br/> | |
Use two fingers to swipe back. Wait five seconds, and the page will fade away, because the painter dies.<br/> | |
Does not fail if web inspector is open. | |
<script> | |
document.body.onclick = function() { | |
history.pushState({}, 'title', 'page2'); | |
}; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment