OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>Service Worker: Visibility of headers during fetch.</title> | 2 <title>Service Worker: Visibility of headers during fetch.</title> |
3 <script src="/resources/testharness.js"></script> | 3 <script src="/resources/testharness.js"></script> |
4 <script src="/resources/testharnessreport.js"></script> | 4 <script src="/resources/testharnessreport.js"></script> |
5 <script src="resources/get-host-info.sub.js"></script> | 5 <script src="/common/get-host-info.sub.js"></script> |
6 <script src="resources/test-helpers.sub.js"></script> | 6 <script src="resources/test-helpers.sub.js"></script> |
7 <body> | 7 <body> |
8 <script> | 8 <script> |
9 var worker = 'resources/fetch-rewrite-worker.js'; | 9 var worker = 'resources/fetch-rewrite-worker.js'; |
10 var path = base_path() + 'resources/fetch-access-control.py'; | 10 var path = base_path() + 'resources/fetch-access-control.py'; |
11 var host_info = get_host_info(); | 11 var host_info = get_host_info(); |
12 var frame; | 12 var frame; |
13 | 13 |
14 async_test(function(t) { | 14 async_test(function(t) { |
15 var scope = 'resources/fetch-header-visibility-iframe.html'; | 15 var scope = 'resources/fetch-header-visibility-iframe.html'; |
(...skipping 27 matching lines...) Expand all Loading... |
43 }); | 43 }); |
44 }) | 44 }) |
45 .then(function(result) { | 45 .then(function(result) { |
46 frame.remove(); | 46 frame.remove(); |
47 return service_worker_unregister_and_done(t, scope); | 47 return service_worker_unregister_and_done(t, scope); |
48 }) | 48 }) |
49 .catch(unreached_rejection(t)); | 49 .catch(unreached_rejection(t)); |
50 }, 'Visibility of defaulted headers during interception'); | 50 }, 'Visibility of defaulted headers during interception'); |
51 </script> | 51 </script> |
52 </body> | 52 </body> |
OLD | NEW |