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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-worker-onerror-no-cors.php

Issue 2332263002: Updated suborigin serialization to latest spec proposal (Closed)
Patch Set: Actually disable test Created 4 years, 2 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 <?php 1 <?php
2 header("Suborigin: foobar"); 2 header("Suborigin: foobar");
3 ?> 3 ?>
4 <!DOCTYPE html> 4 <!DOCTYPE html>
5 <html> 5 <html>
6 <head> 6 <head>
7 <script> 7 <script>
8 window.jsTestIsAsync = true; 8 window.jsTestIsAsync = true;
9 window.isOnErrorTest = true; 9 window.isOnErrorTest = true;
10 </script> 10 </script>
11 <script src="/js-test-resources/js-test.js"></script> 11 <script src="/js-test-resources/js-test.js"></script>
12 </head> 12 </head>
13 <body> 13 <body>
14 <script> 14 <script>
15 description("Ensure that scripts imported into a Worker from cross-origi n hosts trigger sanitized onerror messages."); 15 description("Ensure that scripts imported into a Worker from cross-origi n hosts trigger sanitized onerror messages.");
16 16
17 var worker; 17 var worker;
18 shouldThrow('worker = new Worker("/workers/resources/worker-importscript s-onerror-sameorigin.js")', '"SecurityError: Failed to construct \'Worker\': Scr ipt at \'http://127.0.0.1:8000/workers/resources/worker-importscripts-onerror-sa meorigin.js\' cannot be accessed from origin \'http://foobar_127.0.0.1:8000\'."' ); 18 shouldThrow('worker = new Worker("/workers/resources/worker-importscript s-onerror-sameorigin.js")', '"SecurityError: Failed to construct \'Worker\': Scr ipt at \'http://127.0.0.1:8000/workers/resources/worker-importscripts-onerror-sa meorigin.js\' cannot be accessed from origin \'http-so://foobar.127.0.0.1:8000\' ."');
19 finishJSTest(); 19 finishJSTest();
20 </script> 20 </script>
21 </body> 21 </body>
22 </html> 22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698