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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-mixed-content-to-outscope.html

Issue 2278303002: Remove the allow-displaying-mixed-content setting from Blink. (Closed)
Patch Set: Cleanup before adding reviewers. Created 4 years, 3 months 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>Service Worker: Mixed content of fetch()</title> 2 <title>Service Worker: Mixed content of 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.js?pipe=sub"></script> 5 <script src="../resources/get-host-info.js?pipe=sub"></script>
6 <script src="resources/test-helpers.js"></script> 6 <script src="resources/test-helpers.js"></script>
7 <body></body> 7 <body></body>
8 <script> 8 <script>
9 if (window.testRunner) { 9 if (window.testRunner) {
10 // In Chromium we need to change the setting to disallow displaying insecure 10 // In Chromium we need to change the setting to disallow displaying insecure
11 // contents. 11 // contents.
12 testRunner.overridePreference('WebKitAllowDisplayingInsecureContent', false); 12 testRunner.overridePreference("WebKitStrictMixedContentChecking", true);
13 } 13 }
14 14
15 async_test(function(t) { 15 async_test(function(t) {
16 var host_info = get_host_info(); 16 var host_info = get_host_info();
17 window.addEventListener('message', t.step_func(on_message), false); 17 window.addEventListener('message', t.step_func(on_message), false);
18 with_iframe( 18 with_iframe(
19 host_info['HTTPS_ORIGIN'] + base_path() + 19 host_info['HTTPS_ORIGIN'] + base_path() +
20 'resources/fetch-mixed-content-iframe.html?target=outscope'); 20 'resources/fetch-mixed-content-iframe.html?target=outscope');
21 function on_message(e) { 21 function on_message(e) {
22 assert_equals(e.data.results, 'finish'); 22 assert_equals(e.data.results, 'finish');
23 t.done(); 23 t.done();
24 } 24 }
25 }, 'Verify Mixed content of fetch() in a Service Worker'); 25 }, 'Verify Mixed content of fetch() in a Service Worker');
26 </script> 26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698