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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/history/replacestate-nocrash.html
diff --git a/LayoutTests/fast/history/replacestate-nocrash.html b/LayoutTests/fast/history/replacestate-nocrash.html
index 5c85e709d51e3984921e581876069b153a3cecbe..7cb5dbe6d253c9fe4a8d2b9529e3e51aa601a1f5 100644
--- a/LayoutTests/fast/history/replacestate-nocrash.html
+++ b/LayoutTests/fast/history/replacestate-nocrash.html
@@ -5,8 +5,8 @@ Test passes if it does not crash.
if (window.testRunner)
testRunner.dumpAsText();
-Object.prototype.__defineSetter__("foo",function(){history.replaceState("")});
-history.replaceState({foo:1,zzz:Array(1<<22).join("a")});
+Object.prototype.__defineSetter__("foo",function(){history.replaceState("", "")});
+history.replaceState({foo:1,zzz:Array(1<<22).join("a")}, "");
history.state.length;
</script>
</html>

Powered by Google App Engine
This is Rietveld 408576698