| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="/resources/testharness.js"></script> | 2 <script src="/resources/testharness.js"></script> |
| 3 <script src="/resources/testharnessreport.js"></script> | 3 <script src="/resources/testharnessreport.js"></script> |
| 4 <script src="resources/get-host-info.sub.js"></script> | 4 <script src="resources/get-host-info.sub.js"></script> |
| 5 <script src="resources/test-helpers.sub.js"></script> | 5 <script src="resources/test-helpers.sub.js"></script> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 var worker = 'resources/fetch-event-test-worker.js'; | 8 var worker = 'resources/fetch-event-test-worker.js'; |
| 9 | 9 |
| 10 async_test(function(t) { | 10 async_test(function(t) { |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 // Now, run the referrer policy tests while passing a referrer in Requ
estInit. | 315 // Now, run the referrer policy tests while passing a referrer in Requ
estInit. |
| 316 var referrer = get_host_info()['HTTPS_ORIGIN'] + base_path() + 'fake-r
eferrer'; | 316 var referrer = get_host_info()['HTTPS_ORIGIN'] + base_path() + 'fake-r
eferrer'; |
| 317 return run_referrer_policy_tests(frame, 'fake-referrer', referrer, | 317 return run_referrer_policy_tests(frame, 'fake-referrer', referrer, |
| 318 frame.contentDocument.location.origin
); | 318 frame.contentDocument.location.origin
); |
| 319 }) | 319 }) |
| 320 .then(function() { | 320 .then(function() { |
| 321 frame.remove(); | 321 frame.remove(); |
| 322 return service_worker_unregister_and_done(t, scope); | 322 return service_worker_unregister_and_done(t, scope); |
| 323 }) | 323 }) |
| 324 .catch(unreached_rejection(t)); | 324 .catch(unreached_rejection(t)); |
| 325 }, 'Service Worker responds to fetch event with the referrer URL'); | 325 }, 'Service Worker responds to fetch event with the referrer policy'); |
| 326 | 326 |
| 327 async_test(function(t) { | 327 async_test(function(t) { |
| 328 var scope = 'resources/simple.html?clientId'; | 328 var scope = 'resources/simple.html?clientId'; |
| 329 var frame; | 329 var frame; |
| 330 service_worker_unregister_and_register(t, worker, scope) | 330 service_worker_unregister_and_register(t, worker, scope) |
| 331 .then(function(reg) { | 331 .then(function(reg) { |
| 332 return wait_for_state(t, reg.installing, 'activated'); | 332 return wait_for_state(t, reg.installing, 'activated'); |
| 333 }) | 333 }) |
| 334 .then(function() { return with_iframe(scope); }) | 334 .then(function() { return with_iframe(scope); }) |
| 335 .then(function(f) { | 335 .then(function(f) { |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 }) | 656 }) |
| 657 .then(function() { | 657 .then(function() { |
| 658 frame.remove(); | 658 frame.remove(); |
| 659 return service_worker_unregister_and_done(t, scope); | 659 return service_worker_unregister_and_done(t, scope); |
| 660 }) | 660 }) |
| 661 .catch(unreached_rejection(t)); | 661 .catch(unreached_rejection(t)); |
| 662 }, 'Service Worker responds to fetch event with the correct integrity_metadata
'); | 662 }, 'Service Worker responds to fetch event with the correct integrity_metadata
'); |
| 663 | 663 |
| 664 </script> | 664 </script> |
| 665 </body> | 665 </body> |
| OLD | NEW |