Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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.
<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
You can’t perform that action at this time.