Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: LayoutTests/fast/history/replacestate-nocrash.html

Issue 1007113002: The history.pushState/replaceState should check for minimum arity exception. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 Test passes if it does not crash. 3 Test passes if it does not crash.
4 <script> 4 <script>
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 7
8 Object.prototype.__defineSetter__("foo",function(){history.replaceState("")}); 8 Object.prototype.__defineSetter__("foo",function(){history.replaceState("", "")} );
9 history.replaceState({foo:1,zzz:Array(1<<22).join("a")}); 9 history.replaceState({foo:1,zzz:Array(1<<22).join("a")}, "");
10 history.state.length; 10 history.state.length;
11 </script> 11 </script>
12 </html> 12 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698