OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- This test is prefixed with `chromium.` because the equivalent version |
| 3 available in Web Platform Tests is known to cause timeout errors in the |
| 4 Chromium automated build system. They should be maintained only to preserve |
| 5 test converage until the corresponding versions in Web Platform Tests can be |
| 6 made to pass consistently. See |
| 7 https://codereview.chromium.org/2805313003/ --> |
2 <title>Service Worker: CORS XHR of fetch()</title> | 8 <title>Service Worker: CORS XHR of fetch()</title> |
3 <script src="../resources/testharness.js"></script> | 9 <script src="../resources/testharness.js"></script> |
4 <script src="../resources/testharnessreport.js"></script> | 10 <script src="../resources/testharnessreport.js"></script> |
5 <script src="../resources/get-host-info.js?pipe=sub"></script> | 11 <script src="../resources/get-host-info.js?pipe=sub"></script> |
6 <script src="resources/test-helpers.js"></script> | 12 <script src="resources/test-helpers.js"></script> |
7 <body> | 13 <body> |
8 <script> | 14 <script> |
9 async_test(function(t) { | 15 async_test(function(t) { |
10 var SCOPE = 'resources/fetch-cors-xhr-iframe.html'; | 16 var SCOPE = 'resources/fetch-cors-xhr-iframe.html'; |
11 var SCRIPT = 'resources/fetch-rewrite-worker.js'; | 17 var SCRIPT = 'resources/fetch-rewrite-worker.js'; |
(...skipping 17 matching lines...) Expand all Loading... |
29 }); | 35 }); |
30 frame.contentWindow.postMessage({}, | 36 frame.contentWindow.postMessage({}, |
31 host_info['HTTP_ORIGIN'], | 37 host_info['HTTP_ORIGIN'], |
32 [channel.port2]); | 38 [channel.port2]); |
33 }); | 39 }); |
34 }) | 40 }) |
35 .catch(unreached_rejection(t)); | 41 .catch(unreached_rejection(t)); |
36 }, 'Verify CORS XHR of fetch() in a Service Worker'); | 42 }, 'Verify CORS XHR of fetch() in a Service Worker'); |
37 </script> | 43 </script> |
38 </body> | 44 </body> |
OLD | NEW |