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

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

Issue 1143593006: Skip tests whose expectations change based on scheme registration. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/testharness.js"></script> 4 <script src="../resources/testharness.js"></script>
5 <script src="../resources/testharnessreport.js"></script> 5 <script src="../resources/testharnessreport.js"></script>
6 <script> 6 <script>
7 testRunner.setAllowUniversalAccessFromFileURLs(false); 7 testRunner.setAllowUniversalAccessFromFileURLs(false);
8 testRunner.setAllowFileAccessFromFileURLs(false); 8 testRunner.setAllowFileAccessFromFileURLs(false);
9 9
10 var t = async_test('file: should be a unique-origin protocol for XHR purposes'); 10 var t = async_test('file: should be a unique-origin protocol for XHR purposes');
11 window.addEventListener('message', t.step_func(function(evt) { 11 window.addEventListener('message', t.step_func(function(evt) {
12 assert_equals(evt.data, 'NetworkError'); 12 assert_equals(evt.data, 'NetworkError');
13 t.done(); 13 t.done();
14 })); 14 }));
15 </script> 15 </script>
16 </head> 16 </head>
17 <body> 17 <body>
18 <iframe src="resources/cannot-read-self-from-file.html"></iframe> 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> 19 </body>
21 </html> 20 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/security/cannot-read-self-from-file-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698