Chromium Code Reviews| 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..a775c71d7e45d030b5c8aab97d3850fb0407d55c |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/navigation/pushstate-at-unique-origin-denied.html |
| @@ -0,0 +1,12 @@ |
| +<meta http-equiv="Content-Security-Policy" content="sandbox allow-scripts"> |
| +<script> |
|
Mike West
2015/12/08 13:45:18
Please write new tests with `testharness.js` (and
robwu
2015/12/08 14:06:39
I believe that the test is not suited for the test
Mike West
2015/12/08 14:18:41
That's a bug in the way that we're running those t
|
| +if (window.testRunner) { |
| + testRunner.dumpAsText(); |
| +} |
| +try { |
| + history.pushState(null, null, document.URL); |
| + document.write("FAIL URL at unique origin was manipulated via pushState."); |
| +} catch(e) { |
| + document.write("PASS: unique URLs cannot be manipulated via pushState."); |
| +} |
| +</script> |