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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/navigation/pushstate-at-unique-origin-denied.html

Issue 1495013002: Check for equality of the URL's origin in replaceState/pushState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Allow --disable-web-security again, add more tests Created 5 years 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
(Empty)
1 <meta http-equiv="Content-Security-Policy" content="sandbox allow-scripts">
2 <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
3 if (window.testRunner) {
4 testRunner.dumpAsText();
5 }
6 try {
7 history.pushState(null, null, document.URL);
8 document.write("FAIL URL at unique origin was manipulated via pushState.");
9 } catch(e) {
10 document.write("PASS: unique URLs cannot be manipulated via pushState.");
11 }
12 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698