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

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/source-list-parsing-07.html

Issue 470723006: Disallow an empty host in a CSP host-source directive (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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/multiple-iframe-test.js'></script> 4 <script src='resources/multiple-iframe-test.js'></script>
5 <script> 5 <script>
6 var tests = [ 6 var tests = [
7 ['no', 'script-src http:/', 'resources/script.js'], 7 ['no', 'script-src http:/', 'resources/script.js'],
8 ['no', 'script-src http://', 'resources/script.js'],
8 ['no', 'script-src http:/127.0.0.1', 'resources/script.js'], 9 ['no', 'script-src http:/127.0.0.1', 'resources/script.js'],
9 ['no', 'script-src http:///127.0.0.1', 'resources/script.js'], 10 ['no', 'script-src http:///127.0.0.1', 'resources/script.js'],
10 ['no', 'script-src http://127.0.0.1:/', 'resources/script.js'], 11 ['no', 'script-src http://127.0.0.1:/', 'resources/script.js'],
11 ['no', 'script-src https://127.?.0.1:*', 'resources/script.js'], 12 ['no', 'script-src https://127.?.0.1:*', 'resources/script.js'],
12 ['no', 'script-src https://127.0.0.1:', 'resources/script.js'], 13 ['no', 'script-src https://127.0.0.1:', 'resources/script.js'],
13 ['no', 'script-src \'slef\'', 'resources/script.js'], 14 ['no', 'script-src \'slef\'', 'resources/script.js'],
14 ['yes','script-src https://127.0.0.1:\t* ', 'resources/script.js'], 15 ['yes','script-src https://127.0.0.1:\t* ', 'resources/script.js'],
15 ]; 16 ];
16 </script> 17 </script>
17 </head> 18 </head>
18 <body onload="test()"> 19 <body onload="test()">
19 <p> 20 <p>
20 Invalid source expressions should log a console warning, and be ignored. 21 Invalid source expressions should log a console warning, and be ignored.
21 </p> 22 </p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698