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

Side by Side Diff: LayoutTests/http/tests/security/isolatedWorld/bypass-main-world-csp-for-xhr.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698