OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>Service Worker: Service Worker can receive HTTP opaqueredirect response.<
/title> |
| 3 <script src="/resources/testharness.js"></script> |
| 4 <script src="/resources/testharnessreport.js"></script> |
| 5 <script src="/common/get-host-info.sub.js"></script> |
| 6 <script src="resources/test-helpers.sub.js"></script> |
| 7 <meta charset="utf-8"> |
| 8 <body></body> |
| 9 <script> |
| 10 async_test(function(t) { |
| 11 var frame_src = get_host_info()['HTTPS_ORIGIN'] + base_path() + |
| 12 'resources/navigation-redirect-to-http-iframe.html'; |
| 13 function on_message(e) { |
| 14 assert_equals(e.data.results, 'OK'); |
| 15 t.done(); |
| 16 } |
| 17 |
| 18 window.addEventListener('message', t.step_func(on_message), false); |
| 19 |
| 20 with_iframe(frame_src) |
| 21 .then(function(frame) { |
| 22 t.add_cleanup(function() { frame.remove(); }); |
| 23 }); |
| 24 }, 'Verify Service Worker can receive HTTP opaqueredirect response.'); |
| 25 </script> |
OLD | NEW |