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.
That's a bug in the way that we're running those tests. We ought to be running
them through `wptserve`, but that isn't wired up to the test runner yet. If you
execute the tests from http://w3c-test.org/tools/runner/index.html, you'll see
more reasonable results. There's value to the ecosystem in upstreaming these
tests, even if we're doing a bad job as a project at running them in an
automated fashion.
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.");
Issue 1495013002: Check for equality of the URL's origin in replaceState/pushState
(Closed)
Created 5 years ago by robwu
Modified 5 years ago
Reviewers: Mike West, brettw
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 17