OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>register on a secure page after redirect from an non-secure url</title> | 2 <title>register on a secure page after redirect from an non-secure url</title> |
3 <script src="../resources/testharness.js"></script> | 3 <script src="../resources/testharness.js"></script> |
4 <script src="../resources/testharness-helpers.js"></script> | 4 <script src="../resources/testharness-helpers.js"></script> |
5 <script src="../resources/testharnessreport.js"></script> | 5 <script src="../resources/testharnessreport.js"></script> |
6 <script src="../resources/get-host-info.js?pipe=sub"></script> | 6 <script src="../resources/get-host-info.js?pipe=sub"></script> |
7 <script src="resources/test-helpers.js"></script> | 7 <script src="resources/test-helpers.js"></script> |
8 <body> | 8 <body> |
9 <script> | 9 <script> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 return redirect_and_register(target_url) | 36 return redirect_and_register(target_url) |
37 .then(result => { assert_equals(result, 'OK'); }); | 37 .then(result => { assert_equals(result, 'OK'); }); |
38 }, 'register on a secure page after redirect from an non-secure url'); | 38 }, 'register on a secure page after redirect from an non-secure url'); |
39 | 39 |
40 promise_test(function(t) { | 40 promise_test(function(t) { |
41 var target_url = get_host_info()['UNAUTHENTICATED_ORIGIN'] + | 41 var target_url = get_host_info()['UNAUTHENTICATED_ORIGIN'] + |
42 '/serviceworker/resources/register.html'; | 42 '/serviceworker/resources/register.html'; |
43 | 43 |
44 return redirect_and_register(target_url) | 44 return redirect_and_register(target_url) |
45 .then(result => {assert_equals(result, 'FAIL: NotSupportedError');}); | 45 .then(result => {assert_equals(result, 'FAIL: SecurityError');}); |
46 }, 'register on a non-secure page after redirect from an non-secure url'); | 46 }, 'register on a non-secure page after redirect from an non-secure url'); |
47 </script> | 47 </script> |
48 </body> | 48 </body> |
OLD | NEW |