Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/http-to-https-redirect-and-register.html

Issue 1532463003: ServiceWorker: Reject SecurityError instead of NotSupportedError. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698