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

Side by Side Diff: LayoutTests/http/tests/fetch/resources/init.js

Issue 961633002: Mixed Content: Remove redundant pref from tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/http/tests/navigation/resources/ping-cross-origin-from-https-target.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 if (window.testRunner) { 1 if (window.testRunner) {
2 // In Chromium we need to change the setting to disallow displaying
3 // insecure contents.
4
5 // By default, LayoutTest content_shell returns allowed for
6 // "Should fetching request be blocked as mixed content?" at Step 5:
7 // https://w3c.github.io/webappsec/specs/mixedcontent/#should-block-fetch
8 // > If the user agent has been instructed to allow mixed content
9 // Turning the switch below to false makes this condition above false, and
10 // make content_shell to run into Step 7 to test mixed content blocking.
11 testRunner.overridePreference('WebKitAllowRunningInsecureContent', false);
12 //FIXME: to be removed.
13 //testRunner.overridePreference('WebKitAllowDisplayingInsecureContent', true);
14
15 // Accept all cookies. 2 // Accept all cookies.
16 testRunner.setAlwaysAcceptCookies(true); 3 testRunner.setAlwaysAcceptCookies(true);
17 } 4 }
18 5
19 // How tests starts: 6 // How tests starts:
20 // 1. http://127.0.0.1:8000/.../X.html is loaded. 7 // 1. http://127.0.0.1:8000/.../X.html is loaded.
21 // 2. init(): Do initialization. 8 // 2. init(): Do initialization.
22 // In fetch-access-control* tests 9 // In fetch-access-control* tests
23 // (see init() in fetch-access-control-util.js): 10 // (see init() in fetch-access-control-util.js):
24 // - Login to HTTP pages. 11 // - Login to HTTP pages.
(...skipping 16 matching lines...) Expand all
41 } else { 28 } else {
42 // Step 3a. For non-base-https tests, start tests here. 29 // Step 3a. For non-base-https tests, start tests here.
43 start(t); 30 start(t);
44 } 31 }
45 }); 32 });
46 } else { 33 } else {
47 // Step 4b. Already redirected to the HTTPS page. 34 // Step 4b. Already redirected to the HTTPS page.
48 // Start tests for base-https tests here. 35 // Start tests for base-https tests here.
49 start(t); 36 start(t);
50 } 37 }
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/navigation/resources/ping-cross-origin-from-https-target.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698