OLD | NEW |
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> |
OLD | NEW |