Index: third_party/WebKit/LayoutTests/http/tests/navigation/pushstate-at-unique-origin-denied.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/navigation/pushstate-at-unique-origin-denied.html b/third_party/WebKit/LayoutTests/http/tests/navigation/pushstate-at-unique-origin-denied.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a3f01890bb81579b0dd5c2502c5cabf812626e8e |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/navigation/pushstate-at-unique-origin-denied.html |
@@ -0,0 +1,10 @@ |
+<meta http-equiv="Content-Security-Policy" content="sandbox allow-scripts"> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+<script> |
+test(function () { |
+ assert_throws('SecurityError', function () { |
+ history.pushState(null, null, document.URL); |
+ }); |
+}, 'pushState at unique origin should fail with SecurityError'); |
+</script> |