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

Side by Side Diff: LayoutTests/security/cannot-read-self-from-file.html

Issue 1140203002: make file: an effectively unique origin (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix test Created 5 years, 7 months 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 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/testharness.js"></script>
5 <script src="../resources/testharnessreport.js"></script>
6 <script>
7 testRunner.setAllowUniversalAccessFromFileURLs(false);
8 testRunner.setAllowFileAccessFromFileURLs(false);
9
10 var t = async_test('file: should be a unique-origin protocol for XHR purposes');
11 window.addEventListener('message', t.step_func(function(evt) {
12 assert_equals(evt.data, 'NetworkError');
13 t.done();
14 }));
15 </script>
16 </head>
17 <body>
18 <iframe src="resources/cannot-read-self-from-file.html"></iframe>
19 Documents loaded from file: shouldn't be able to access themselves via XHR.
20 </body>
21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698