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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/navigation/pushstate-in-blob-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: Put all logic in History.cpp, change tests to testharness 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 <script src="../resources/testharness.js"></script>
2 <script src="../resources/testharnessreport.js"></script>
3 <script>
4 test(function () {
5 var blobUrl = URL.createObjectURL(new Blob());
6 assert_throws('SecurityError', function () {
7 history.pushState(null, null, blobUrl);
8 });
9 }, 'pushState to blob:-URL should fail with SecurityError');
10 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698