OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <script src="../../js-test-resources/js-test-pre.js"></script> | 3 <script src="../../js-test-resources/js-test-pre.js"></script> |
4 <meta http-equiv="Content-Security-Policy" content="connect-src 'none'"> | 4 <meta http-equiv="Content-Security-Policy" content="connect-src 'none'"> |
5 <body> | 5 <body> |
6 <p id="description"></p> | 6 <p id="description"></p> |
7 <div id="console"></div> | 7 <div id="console"></div> |
8 | 8 |
9 <script> | 9 <script> |
10 description('Tests that isolated worlds can have XHRs that the page\'s CSP would
n\'t allow.'); | 10 description('Tests that isolated worlds can have XHRs that the page\'s CSP would
n\'t allow.'); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 debug('PASS: XHR.open threw an exception.'); | 102 debug('PASS: XHR.open threw an exception.'); |
103 else | 103 else |
104 debug('FAIL: XHR.open should not have thrown an exception.'); | 104 debug('FAIL: XHR.open should not have thrown an exception.'); |
105 } finally { | 105 } finally { |
106 window.postMessage(JSON.stringify({'type': 'test-done'}), '*'); | 106 window.postMessage(JSON.stringify({'type': 'test-done'}), '*'); |
107 } | 107 } |
108 } | 108 } |
109 | 109 |
110 </script> | 110 </script> |
111 | 111 |
112 <script src="../../js-test-resources/js-test-post.js"></script> | |
113 </body> | 112 </body> |
114 </html> | 113 </html> |
OLD | NEW |