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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/fetch/resources/fetch-test-helpers.js

Issue 1931063004: Stop blocking 'http://127.0.0.1/' as mixed content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ugh. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/fetch/resources/fetch-test-helpers.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/fetch/resources/fetch-test-helpers.js b/third_party/WebKit/LayoutTests/http/tests/fetch/resources/fetch-test-helpers.js
index 0fb8dd787cb37aa43e6d5bd5b6a4d13d5240b691..0d8426e37cfb924d405e3c91fb5f6cfac14bb9d8 100644
--- a/third_party/WebKit/LayoutTests/http/tests/fetch/resources/fetch-test-helpers.js
+++ b/third_party/WebKit/LayoutTests/http/tests/fetch/resources/fetch-test-helpers.js
@@ -187,7 +187,7 @@ function testBlockMixedContent(mode) {
return fetch(HTTPS_REDIRECT_URL +
encodeURIComponent(HTTPS_BASE_URL + 'test4-' + mode),
{mode: mode})
- .then(function(res) {assert_equals(res.status, 200); },
+ .then(function(res) {assert_equals(res.status, mode == 'no-cors' ? 0 : 200); },
t.unreached_func('Test 4: Must success (' +
mode + ', HTTPS->HTTPS->HTTPS)'));
})

Powered by Google App Engine
This is Rietveld 408576698